Set the windows user?

Code and memory profiling for .NET developers.

Moderators: Brian Donahue, richardjm, StephenC

Set the windows user?

Postby Fosef » Mon Dec 22, 2008 6:08 pm

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.
Fosef
 
Posts: 2
Joined: Mon Dec 22, 2008 5:59 pm

Postby Fosef » Mon Dec 22, 2008 7:25 pm

I guess that wasn't my issue. I set it up to run through IIS instead of web development server and it worked fine.
Fosef
 
Posts: 2
Joined: Mon Dec 22, 2008 5:59 pm

Postby Brian Donahue » Sat Dec 27, 2008 2:02 pm

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
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest