views:

13

answers:

1

I am Using Active X control and using WebClient class to upload file to server. what we are doing is:: at client end, in ActiveXcontrol, we opened a Server Located DocX file . and Once we done the authoring in File, we pressed Save, here on Save Click, we Used Webclient Class to Save Document to Server...The Problem is that at times the Uploading(Webclient) class does not works, although No Error has been thrown..

If we make the changes to same document and save document to Server.....at Random times it fails(No saving of document... means no upload) and at times, it works totaly fine.

Is there any one, who have gone through such seanario/pain. Please help.

Thanks so much in advane.

A: 

Are you using WebClient client code exposed as a COM object that is being called from native code? If so, why dont you use WinHTTP? If you want to do it the current way, you will have to create a system.net trace log and paste it on pastebin.com.

You can also look at how to do a file upload using multiplart/mixed to a web form

feroze