Running ourWCF service with a specific identity, such as a service
account, helps to isolate the service. It allows you to restrict service
resources to your application's account, and allows you to use Windows
auditing to track the application's activity separately from other
applications or services.
Perform the following steps to create a service account to run your WCF service:
- Create a Windows account.
- Run the following aspnet_regiis.exe command to assign the relevant ASP.NET permissions to the account:
aspnet_regiis.exe -ga machineName\userName
aspnet_regiis.exe -ga machineName\shirsendun