G
Greg
Here's the situation.
I have an asp.net application that calls a console application which
copies files between servers. I have the console application because
the copying of files takes a while and don't want the asp.net app to
wait until its finished. So the user clicks on a button within the
asp.net app and I'm using the Shell command to call the console app.
I've tried using impersonate within the asp.net application but it
looses the info when the console application is called. If I run the
console app but its self, away from the asp.net app, it runs fine
which leads me to believe the console app is running under the aspnet
userid which doesn't have access to the servers.
Questions
1. Is there a way to run the console application as a different user?
2. Can I connect to a UNC in the console application as a specific
user preferrable without mapping a drive?
Any help is greatly appreciated.
Thanks!
I have an asp.net application that calls a console application which
copies files between servers. I have the console application because
the copying of files takes a while and don't want the asp.net app to
wait until its finished. So the user clicks on a button within the
asp.net app and I'm using the Shell command to call the console app.
I've tried using impersonate within the asp.net application but it
looses the info when the console application is called. If I run the
console app but its self, away from the asp.net app, it runs fine
which leads me to believe the console app is running under the aspnet
userid which doesn't have access to the servers.
Questions
1. Is there a way to run the console application as a different user?
2. Can I connect to a UNC in the console application as a specific
user preferrable without mapping a drive?
Any help is greatly appreciated.
Thanks!