asp.net-mvc 为什么应用程序池会自动停止?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18016353/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 03:04:09  来源:igfitidea点击:

Why does the application pool automatically stop?

asp.net-mvciisapplication-pool

提问by backtrack

I'm doing performance testing for my MVC internet application using IIS 7.0

我正在使用 IIS 7.0 对我的 MVC Internet 应用程序进行性能测试

Sometimes the application pool stops and I get an error saying "service unavailable" in my browser. I then have to restart the pool.

有时应用程序池停止,我在浏览器中收到一条错误消息,提示“服务不可用”。然后我必须重新启动池。

Why is the pool automatically stopped, and how can I solve this problem?

为什么矿池会自动停止,我该如何解决这个问题?

updateAnd my log file has : "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll returned an error from registration. The data is the error."

更新我的日志文件有:“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll 从注册返回错误。数据是错误。”

回答by user247702

The application pool stops when it can't recover from an error/crash. Look at the Event Viewer under Windows Logs > Applicationto see the exception(s) that caused the crash. The Sourcecolumn will mention something like ASP.NET 4.0.30319.0

应用程序池在无法从错误/崩溃中恢复时停止。查看Windows 日志 > 应用程序下的事件查看器以查看导致崩溃的异常。该来源列会提到像ASP.NET 4.0.30319.0

screenshot of event viewer

事件查看器截图

回答by yhAm

Well, I encounter also this problem and this is what I do.

好吧,我也遇到了这个问题,这就是我所做的。

1) Open IIS.

1) 打开 IIS。

2) Right click on your Application-Pool for the web application and select "Advanced Settings".

2) 右键单击​​ Web 应用程序的应用程序池,然后选择“高级设置”。

3) Set "Rapid-Fail Protection" -> "Enabled" to False.

3) 将“Rapid-Fail Protection”->“Enabled”设置为False。

If this is true, the Application pool is shut down if there are a specified number of worker process crashes within a specified time period. By default, an application pool is shutdown if there are 5 crashes within a 5 minutes interval.

如果这是真的,如果在指定时间段内有指定数量的工作进程崩溃,则应用程序池将关闭。默认情况下,如果在 5 分钟间隔内发生 5 次崩溃,则应用程序池将关闭。

I read the answer in this link [https://sharepoint.stackexchange.com/questions/22885/application-pool-is-auto-stopped-when-browse-web-application-in-iis7]

我在此链接中阅读了答案 [ https://sharepoint.stackexchange.com/questions/22885/application-pool-is-auto-stopped-when-browse-web-application-in-iis7]

hope that this will give help to others.

希望这会对其他人有所帮助。

回答by psfinaki

Well, i had a similar problem, just with another module.

好吧,我有一个类似的问题,只是另一个模块。

After looking to the event log, check if the needed module is present in the system32\inetsrv folder. If it is absent then delete/comment the appropriate line in the system32\inetsrv\config\applicationHost.config in the globalModules section. Perhaps you will have to delete some modules (that also won't be found and pointed by event viewer) from your IIS application pool.

查看事件日志后,检查 system32\inetsrv 文件夹中是否存在所需的模块。如果它不存在,则删除/注释 system32\inetsrv\config\applicationHost.config 中 globalModules 部分的相应行。也许您将不得不从 IIS 应用程序池中删除一些模块(也不会被事件查看器找到和指向)。

This helped for me, before that i had tried a lot of things including numerous reinstallations of IIS and .NET Framework.

这对我很有帮助,在此之前我尝试了很多方法,包括多次重新安装 IIS 和 .NET Framework。