I have win2k server (myserver) with Active Directory. Another standalone server (printsrv), this is also my web server. I developed a site and hosted at (printsrv). Now I want to make a link at my site so that my Active Directory’s user can access their network drive which is located at (myserver) server.
I set windows authentication at my website (printsrv) and whenever a person will click that link it will ask for user name and password. Its all working fine. But now when I am programmatically going to access the share of user at (myserver) he is asking me for password and whatever password I am giving he is not authorizing me to access their network shares. Although I am giving my domain’s administrator password. Here is my code in c#:
string[] achDrives = Directory.GetDirectories("\\\\myserver\\username"
I am developing my site in ASP.Net. I have administrative rights.
How I can access my shares from domain controller server through web?
Thanks in advance
I set windows authentication at my website (printsrv) and whenever a person will click that link it will ask for user name and password. Its all working fine. But now when I am programmatically going to access the share of user at (myserver) he is asking me for password and whatever password I am giving he is not authorizing me to access their network shares. Although I am giving my domain’s administrator password. Here is my code in c#:
string[] achDrives = Directory.GetDirectories("\\\\myserver\\username"
I am developing my site in ASP.Net. I have administrative rights.
How I can access my shares from domain controller server through web?
Thanks in advance