Red Gate forums :: View topic - Set the windows user?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Profiler Previous Versions
ANTS Profiler Previous Versions forum

Set the windows user?

Search in ANTS Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Fosef



Joined: 22 Dec 2008
Posts: 2

PostPosted: Mon Dec 22, 2008 6:08 pm    Post subject: Set the windows user? Reply with quote

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
View user's profile Send private message
Fosef



Joined: 22 Dec 2008
Posts: 2

PostPosted: Mon Dec 22, 2008 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6589

PostPosted: Sat Dec 27, 2008 2:02 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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