| Author |
Message |
Fosef
Joined: 22 Dec 2008 Posts: 2
|
Posted: Mon Dec 22, 2008 6:08 pm Post subject: Set the windows user? |
|
|
Is there anyway to have the profiler run as/under a certain user? I can not profile my applications because we use this "HttpContext.Current.User.Identity.Name" to get the user name. Its an internal application run on our intranet server, runs fine outside of profiler...
I'm running the profiler on my local machine right now, and logged in as myself (who has permissions)...but that line above is not grabbing my user name within profiler. |
|
| Back to top |
|
 |
Fosef
Joined: 22 Dec 2008 Posts: 2
|
Posted: Mon Dec 22, 2008 7:25 pm Post subject: |
|
|
| I guess that wasn't my issue. I set it up to run through IIS instead of web development server and it worked fine. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Sat Dec 27, 2008 2:02 pm Post subject: |
|
|
Hi Mark,
You're probably using Windows Authentication on your website, so under development web server, the Identity Name is probably always going to the the ASPNET account, since the development web server does not support impersonation.
As far as I know, when you want a web application to acces resources using the credentials of the user making the request, this requres the web server to support impersonation of the user who is accessing the website through the web browser.
Profiling the website hosted in IIS would surely solve that, but I think you could also try reconfiguring the ASP .NET process model to use your login, although that's going to be inconvenient. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group