Write to a Network location from DNN

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

Hi Guys,

I'm trying to write to a network location but am getting access denied. This
is on a test server running IIS6 on Vista SP1.

System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo("xcopy.exe");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardInput = true;
psi.RedirectStandardError = true;
psi.WorkingDirectory = strWorkingDir;
psi.Arguments = "/S /T /E \"" + src + "\" \"" + dst + "\"" ;

// Start the process
System.Diagnostics.Process proc =
System.Diagnostics.Process.Start(psi);


I have impersonate=true with a user account that has access to the
desitnation folder.

Not sure if I need to or not, but I am unable to change the account that
"World Wide Web Publishing Service" is running as to "Network Service". I
get an error "Error 1079: The account specified for this service is
different from the account specified for other services running in the same
process"

What else do I need to do?
 
Hi Guys,

I'm trying to write to a network location but am getting access denied. This
is on a test server running IIS6 on Vista SP1.

            System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo("xcopy.exe");
            psi.UseShellExecute = false;
            psi.RedirectStandardOutput = true;
            psi.RedirectStandardInput = true;
            psi.RedirectStandardError = true;
            psi.WorkingDirectory = strWorkingDir;
            psi.Arguments = "/S /T /E \"" + src + "\" \"" +dst + "\"" ;

            // Start the process
            System.Diagnostics.Process proc =
System.Diagnostics.Process.Start(psi);

I have impersonate=true with a user account that has access to the
desitnation folder.

Not sure if I need to or not, but I am unable to change the account that
"World Wide Web Publishing Service" is running as to "Network Service". I
get an error "Error 1079: The account specified for this service is
different from the account specified for other services running in the same
process"

What else do I need to do?

Brad, check this http://forums.asp.net/p/1339027/2713625.aspx#2713625
 
Back
Top