Im still kind of new to C#, I have to write an application that accesses a directory and get a file that requires a username and password.
I get an error "Access to path is denied". I don't know how to pass the login information to get access. I have the username and password.
Please help. Thank you
string physicalPath = System.IO.Path.GetFullPath("\\\\10.0.0.1\\DirName");
StreamReader reader = new StreamReader(physicalPath);
Loading
joe bobPosted May 20, 2010, 10:28 AM
Thank you for your response but the directory isn't on our network.
CrishPosted May 20, 2010, 5:02 AM
This file directory may be readonly.Right click on this folder and remove readonly. Also give everyone and aspnet rights to this directory. Your problem may solved