Thursday 19 February 2009

Running your .Net Web Application under a custom user account on Windows Server 2003

Some web applications will benefit from running under a different user account to the default 'Network Service' account. I had to set this up today to support some server side Visio COM execution.


The user account is specified under the Identity tab for the Application Pool properties and whatever user you use will need access to the following resources & groups:



  • Add to group: IIS_WPG

  • Run %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -ga domain\username

  • Local Security Policy > Local Policies > User Rights Assignment > Log on as a service

No comments: