IISExpress AppPool identity verification

Tag: identity , iis-express Author: a3yanglin Date: 2013-10-23

I needed to run IISExpress under a specific identity. After going through this post how to run iisexpress app pool under a different identity I changed the processModel's username and password attributes in my \Documents\IISExpress\config\applicationhost.config file.

I would like to verify the change in my web application. Is there a way to verify?

Ultimately, what I'm after is that my security works properly using the PrincipalPermission attribute. I believe the Name property on this attribute matches the user under which IISExpress and my application are running.

Thanks in advance for your help.

Best Answer

IISExpress runs with current user identity and changing ProcessModel username/password won't help. Only way to run with particular identity is to launch iisexpress.exe with 'runas'.


Since IISExpress gets launched automatically when running the application in VS, is there a way to specify the 'runas?'
just launch VS (devenv.exe) with runas.