none
No application is associated with the specified file for this operation

    Question

  • Hi,
    I have a piece of code, where I open the files stored in a server:

                            System.Net.WebClient wc = new System.Net.WebClient();
    			wc.Credentials = new System.Net.NetworkCredential(uName,pwd);
    			wc.DownloadFile(filename,dest);
    			System.Diagnostics.Process.Start(dest);

    I download the file from the server to a local drive in my pc and then open the file from the local drive.

    It's working most of the times, however for a few files, I get the following error:

    No application is associated with the specified file for this operation.

    I see the file on the server. I am able to open it as well. Not sure what's going on. Any help would be appreciated.


    Thank you


    Abhi

    Wednesday, April 18, 2012 2:23 PM

Answers

All replies