Need help with impersonating for GetCurrentProcess call.

K

Ken Varn

I am fairly new to ASP.NET, and am not sure about a problem that I am having
and how to resolve it.

My web page needs to make a call to Process.GetCurrentProcess() for some
logging class that I am using in my web page. However, when the call is
made I get an exception indicating that Access is denied for the call. I
noticed that the documentation on GetCurrentProcess mentions something about
using PermissionState.Unrestricted, but I don't quite understand what is
expected to make this work. As of right now, my site does not do
impersonation in web.config and I would prefer to not have to set it for
various reasons. Could someone tell me what I need to do to allow this call
to go through?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
 
D

David Coe, MCP

The user that you are running ASP.NET as (see <processModel> in the machine.config) will need to be granted the proper access to the running processes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top