.net - DirectoryNotFoundException - could not find a part of the path -


I need to connect to share folder on remote PC.

I have the feeling that: Double-click my computer, click Service, click Add Network Disc, and enter Network Address in the text box and select the letter of the disk.

and then make the connection by address:

  z: \\\ - - & gt; If the ASP sets the route, then I have the right access, even if the server is running with VS, even through IIS, I get an exception.   

When you run a website through Visual Debugger in your Visual Debugger, Run the website with permissions, give you access to files.

If you run a site on IIS, then your website has more restricted permissions. Generally, in the IIS, the website website will not be able to access the files outside the directory.

You can fix this by giving more permissions to your ASP.NET windows account, but this is a very bad advice, because it is a big security problem.

Comments