tags:

views:

14

answers:

1

I have a WCF service hosted in IIS and want to gain access to the user the service runs as - not the caller. Is this possible?

I know about the aspNetCompatibilityEnabled, but that gives me the user calling the service, not the user the service is running under.

+1  A: 

How about System.Environment.UserName?

Jason Punyon
Oh, yeah, of course :)
Craig Shearer