Is IIS Express a respected user installed in the processModel of the Pool application?

We use IIS Express to run the website, but it uses the credentials of the user who runs it, not the credentials set in the application pool process model.

The relevant sections of my iOS ExpressHost.config application are as follows:

<system.applicationHost> <applicationPools> <add name="MyAppPool"> <processModel identityType="SpecificUser" userName="MYDOMAIN\ServiceAccount" password="MyPassword" /> </add> </applicationPools> <sites> <site name="MyWebsite" id="2"> <application path="/" applicationPool= "MyAppPool"> <virtualDirectory path="/" physicalPath="c:\path\to\my\website" /> </application> <bindings> <binding protocol="http" bindingInformation="*:80:MyWebsite" /> </bindings> <traceFailedRequestsLogging enabled="true" /> </site> </sites> </system.applicationHost> 

And I start IIS Express with the following command line:

 iisexpress.exe /apppool:MyAppPool /config:c:\path\applicationHost.config 

Is this a documented limitation of IIS Express, or am I setting my code incorrectly? If this is a limitation, provide a link to the documentation in your response.

+6
source share
1 answer

IIS Express ignores credentails process models and that by design. The only way to start IIS Express as a specific user is to use the runas command and run iisexpress.exe with a specific user ID.

+1
source

Source: https://habr.com/ru/post/898661/


All Articles