问题
Worker process of our ASP.NET application runs as DefaultAppPool which does not have access to registry keys of logged-on user and cannot debug VBScript invoked from C#. Can I add registry keys to DefaultAppPool user account?
回答1:
DefaultAppPool is not an account, it's an app pool. Inside that app pool you can define which account it runs under (advanced settings / Identity)
Assign it a windows account that has sufficient privileges. Normally you would create a windows account especially for the purpose.
来源:https://stackoverflow.com/questions/23385168/how-to-change-registry-keys-for-defaultapppool