Impersonation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a question concerning impersonation - I created an app using
impersonation that runs fine on my local machine. I also ran the app on two
other developer machines and it runs fine. When I move the app to the web
server for additional testing - none of the pages work. I'm not even able to
pull up the login page. I gave the user the same rights that the asp.net
process has. Is there anything else that needs to be done? Does the
"processmodel" element in the machine.config play any part in this?

Thanks for your assistance.
 
¤ I have a question concerning impersonation - I created an app using
¤ impersonation that runs fine on my local machine. I also ran the app on two
¤ other developer machines and it runs fine. When I move the app to the web
¤ server for additional testing - none of the pages work. I'm not even able to
¤ pull up the login page. I gave the user the same rights that the asp.net
¤ process has. Is there anything else that needs to be done? Does the
¤ "processmodel" element in the machine.config play any part in this?
¤
¤ Thanks for your assistance.

I think we need a bit more detail with respect to the problem. Are you receiving errors? What
exactly is it that isn't working?


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
OK, this is the error message I receive:

"Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\*******\hash.web" is denied. "

To fix this error locally I give permissions to the "assembly and temporary
asp.net files" directories so that the user I have set up in my web.config
has the same permissions the asp.net account would have. This works locally
- when I do the same on the web server it doesn't work.

I get the same error as above on the web server as well. I have several
other applications that work on the web server - but this application is the
only one using impersonation and none of the aspx pages can be browsed.
 
¤ OK, this is the error message I receive:
¤
¤ "Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary
¤ ASP.NET Files\*******\hash.web" is denied. "
¤
¤ To fix this error locally I give permissions to the "assembly and temporary
¤ asp.net files" directories so that the user I have set up in my web.config
¤ has the same permissions the asp.net account would have. This works locally
¤ - when I do the same on the web server it doesn't work.
¤
¤ I get the same error as above on the web server as well. I have several
¤ other applications that work on the web server - but this application is the
¤ only one using impersonation and none of the aspx pages can be browsed.

What level of authentication (IIS) are you using for your web application? Basic? Integrated NT?


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Thanks for your help - I figured a work around to accomplish this task. I
removed impersonation and called an external process to accomplish the job.
Thanks again.
 
Back
Top