admin管理员组文章数量:1122846
I have hosted an aspx Application in IIS version(10.0.19) with the Application Pool Identity configured to a custom user. The credentials of the user in correct. And the application seemed to be working . Until I had introduced a new HttpModule to subscribe to BeginRequest and Error events from the HttpApplication object. Now the App-Pool abruptly stops with the error :
The identity of application pool SampleAppPool is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.
Does this mean there are different permissions for hosting an Application and subscribing to the ASP.NET HTTP Handling events ?
I have hosted an aspx Application in IIS version(10.0.19) with the Application Pool Identity configured to a custom user. The credentials of the user in correct. And the application seemed to be working . Until I had introduced a new HttpModule to subscribe to BeginRequest and Error events from the HttpApplication object. Now the App-Pool abruptly stops with the error :
The identity of application pool SampleAppPool is invalid. The user name or password that is specified for the identity may be incorrect, or the user may not have batch logon rights. If the identity is not corrected, the application pool will be disabled when the application pool receives its first request. If batch logon rights are causing the problem, the identity in the IIS configuration store must be changed after rights have been granted before Windows Process Activation Service (WAS) can retry the logon. If the identity remains invalid after the first request for the application pool is processed, the application pool will be disabled. The data field contains the error number.
Does this mean there are different permissions for hosting an Application and subscribing to the ASP.NET HTTP Handling events ?
Share Improve this question asked Nov 21, 2024 at 15:33 MorfhineMorfhine 236 bronze badges1 Answer
Reset to default 0If you set the application pool identity to a custom account,you have to ensure add this user to IIS_USRS
group to make it work.
To add a specific user (custom account) to the IIS_USRS group:
Click
Start
,Administrative Tools
,Computer Management
.In the left pane, expand
Local Users and Groups
.Select
Groups
, then double-clickIIS_USRS
.Add the custom user that you specified earlier for the process model identity.
Stop and restart the Web services.
More details, please refer to this documention: Event ID 5021 — IIS Application Pool Availability.
本文标签:
版权声明:本文标题:asp.net - Application Pool stops when using a Custom HttpModule to subscribe Begin, Error and End request events - Stack Overflo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309406a1934010.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论