Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an webapplication that copies files from remote computer to local computer. In VS everything works fine, but when I deploy the application to the Webserver, I begin getting the error "Access to the path '\\\Doc$\2\tmp\MV1_DWG1.CGM' is denied."

What I have tried:

I've tried:
WebRequest wr = WebRequest.Create(url);
wr.Credentials = CredentialCache.DefaultCredentials;
WebResponse response = wr.GetResponse();
and here I revceive error:
access to the path denided
Updated 3-Aug-16 1:18am
Bernhard Hiller 4-Aug-16 4:10am    
Are you sure there isn't a typo in the address? belong to Boeing company, and I can hardly imagine they accept such simple access to their computers.

1 solution

That is a permissions issue. The account that is running your code does not have permissions. That's an easy problem to fix. Find the account that is running the Application Pool in IIS and give it permissions or change the account to one that does have permissions.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900