M
Matthew Lee
I am using a C# / ASP.NET application to fire an XCOPY job from the
webserver to a UNC share. This setup works fine when copying to a
local machine but refuses to work on the remote copy. The process
executes correctly, but XCOPY returns "invalid drive specification",
which I'm guessing actually means that the current user context
(ASP.NET application) can't access the share (e.g.
\\someserver\c$\mydir\)
Anyway, here's where I'm at with permissions:
* Changed the ASPNET account to run as System in machine.config
(reboot)
* added
<identity impersonate="true" userName="MY_DOMAIN\\administrator"
password="xxxx" /> to web.config
* Interesting note: when I display the current uiser the ASP.NET app
is running under, I get MACHINENAME/Administrator, not
DOMAIN/Administrator. This seems wrong?
Other examples on the web seem to indicate that this is an issue with
System.Diagnostics.Process, in that it incorrectly uses the user
token, blah blah, (i.e. a bug in .NET). System.Diagnostics.Process
doesn't have the capability to supply user credentials to the process
it runs (a somewhat ridiculous omission)
Any ideas here? TIA.
- Matt
webserver to a UNC share. This setup works fine when copying to a
local machine but refuses to work on the remote copy. The process
executes correctly, but XCOPY returns "invalid drive specification",
which I'm guessing actually means that the current user context
(ASP.NET application) can't access the share (e.g.
\\someserver\c$\mydir\)
Anyway, here's where I'm at with permissions:
* Changed the ASPNET account to run as System in machine.config
(reboot)
* added
<identity impersonate="true" userName="MY_DOMAIN\\administrator"
password="xxxx" /> to web.config
* Interesting note: when I display the current uiser the ASP.NET app
is running under, I get MACHINENAME/Administrator, not
DOMAIN/Administrator. This seems wrong?
Other examples on the web seem to indicate that this is an issue with
System.Diagnostics.Process, in that it incorrectly uses the user
token, blah blah, (i.e. a bug in .NET). System.Diagnostics.Process
doesn't have the capability to supply user credentials to the process
it runs (a somewhat ridiculous omission)
Any ideas here? TIA.
- Matt