K
kellygreer1
I'm writing an .ashx page that needs to be able to write files to a
network share.
Example:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"test");
I seem to be running into that old Network Token issue from Classic
ASP. I had solved this in the past by writing a .COM component to
impersonate the same user as the requester but as a "real" token
instead of the network crippled token.
What is the proper way to solve this in ASP.NET ? Do something with
the current thread? Kick up a new thread with new rights? I saw the
impersonate web.config stuff but this doesn't seem to be quite what I
am looking for.
A reference to the issue
http://support.microsoft.com/kb/207671
Thanks in advance,
Kelly Greer
(e-mail address removed)
replace nospam with yahoo
network share.
Example:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"test");
I seem to be running into that old Network Token issue from Classic
ASP. I had solved this in the past by writing a .COM component to
impersonate the same user as the requester but as a "real" token
instead of the network crippled token.
What is the proper way to solve this in ASP.NET ? Do something with
the current thread? Kick up a new thread with new rights? I saw the
impersonate web.config stuff but this doesn't seem to be quite what I
am looking for.
A reference to the issue
http://support.microsoft.com/kb/207671
Thanks in advance,
Kelly Greer
(e-mail address removed)
replace nospam with yahoo