Access to Mapped Network Drive

v6_14

New member
Joined
Dec 15, 2004
Messages
2
Hello everyone!

Ok, I will try to explain my problem the best I can:

I have this app. (made with C#) that handles some text files on a server. The app. runs locally on a computer that has the server directory in which the files are, mapped to a network drive, but the user doesnt have permissions on that location (and hes not supposed to have them), so I want the app to ask for a user name and pwd to access the files on the drive.... Ive been strugglin :o and I cant figure out how can I do that... actually I dont know If its possible.

Please shed some light on me, any comments are apreciated, let me know if I didnt explained enough, or any additional information you may need.

Thanks!
 
I tried this

Me again!

Ive tried to find a solution following the example in the WindowsIdentity.Impersonate() method found in the .NET Framework Class Library Documentation, If anyone has used it, please let me know if instead of a machine name I can use the network location (e.g. "\\Server\sharedDir\"), I tried to do it this way but it always get the error:

Error 1326. Logon Failure: unknown user name of bad password.

Do I have to use different parameters on the call to LogonUser?

Thanks a lot for your help!
 
Back
Top