K
kellygreer1
Still working on trying to solve this issue. I have an ASP.NET aspx
page that needs to copy a file to a fileshare on another server.
As a simple test I have been trying to do the following:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"test");
I get an error.
I even get an error if I try to use the code from:
http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp
I call the impersonate() method right before my WriteAllText call.
Is there something wrong with the codeproject code?
I have also tried using the impersonate stuff in the web.config with
no luck.
I am using IIS 5 on Windows 2000 as the ASP.NET server.
Thanks,
Kelly Greer
(e-mail address removed)
change nospam to yahoo
page that needs to copy a file to a fileshare on another server.
As a simple test I have been trying to do the following:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"test");
I get an error.
I even get an error if I try to use the code from:
http://www.codeproject.com/useritems/User_Impersonation_in_Ne.asp
I call the impersonate() method right before my WriteAllText call.
Is there something wrong with the codeproject code?
I have also tried using the impersonate stuff in the web.config with
no luck.
I am using IIS 5 on Windows 2000 as the ASP.NET server.
Thanks,
Kelly Greer
(e-mail address removed)
change nospam to yahoo