If you don't want the whole process to run under a privileged account, you have a couple of options:
1. You can turn IIS authentication on and configure your ASP.NET application so that the client request thread (not the whole process) runs under the credentials of the client. 2. Within your method, you can temporarily impersonate a known privileged user account and measure the execution time. Hope this helps. Pradeep http://www.tapadiya.net/pradeep ----- Original Message ----- From: "Mattias Konradsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 8:14 AM Subject: Re: [DOTNET] Measuring performance > >From: "Donal Devine" <[EMAIL PROTECTED]> > >Do you have allow anonymous access turned on? - if so IIS is probably > trying to run the code under the >security context of the IUSR_MACHINENAME > account. > > Yeah, it's turned on.. what's the solution here? It doesnt seem like a good > idea to run the entire application > is unrestricted account just to be able to measure execution time. It isn't > just for optimizing but for displaying to users how long their search took > so I can't just enable it temporarily either.. > > Best Regards > ---- > Mattias Konradsson > "Reinventing the wheel since 1977" > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.