getting the user the app is running as

  • Thread starter Thread starter darrel
  • Start date Start date
D

darrel

Is there a relatively simple way to grab and display what user the
application is running as?

I'm trying to let my application upload a file but am getting access denied
errors. I gave the user ASPNET permissions, but that isn't working, so I
need to figure out who my application is running as on the server.

I had to do this a long time ago, but have since misplaced the script that i
had used to grab this info.

-Darrel
 
Try Task Manager.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
Well, unless you've changed a config file somewhere, it will be running
under one of 2 accounts, depending on the OS on the server. If it's Windows
2003 Server running IIS, the account will be "Network Service." If it's any
prior OS, it will be the "ASPNET" account.

In a page, you could use
System.Security.Principal.WindowsIdentity.GetCurrent().Name

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
 
If it's any
prior OS, it will be the "ASPNET" account.

I realize that's what it should be. But it isn't. Hence my problem. ;o)
In a page, you could use
System.Security.Principal.WindowsIdentity.GetCurrent().Name

I'll give that a shot!

-Darrel
 
Back
Top