Write to a Network location from DNN

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top