Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Write to a Network location from DNN

Reply
Thread Tools

Write to a Network location from DNN

 
 
Brad
Guest
Posts: n/a
 
      03-31-2009
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?



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      03-31-2009
On Mar 31, 5:45*am, "Brad" <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is DNN (DotNetNuke) ad ASP .Net 5 12-07-2010 04:03 AM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
DNN and Access Sara T. ASP .Net 3 09-21-2005 05:33 PM
DNN custom module for surveys Dmitry Duginov ASP .Net 4 11-17-2004 12:50 AM
DNN & FarPoint Spread for Web... asdf ASP .Net 0 10-27-2004 09:52 AM



Advertisments