简体   繁体   English

IIS在重新编译后停止响应

[英]IIS stops responding after recompile

I have my web app I'm developing under local IIS (so not not the visual studio embedded one). 我有在本地IIS下开发的Web应用程序(因此不是嵌入式的Visual Studio)。 It works fine, I can go from page to page... 效果很好,我可以逐页浏览...

But if I then change the code and recompile, IIS stops responding properly for ~2 minutes. 但是,如果我随后更改代码并重新编译,IIS将在大约2分钟内停止正确响应。 If I attach the debugger, then there's no executing code, but it just won't serve any pages. 如果我连接了调试器,则没有执行代码,但它不会提供任何页面。

If I stop the App Pool in IIS, then I get a 503 error instantly, but I then am prevented from restarting the App Pool for ~2 minutes with error: Cannot Start Application Pool / There was an error while performing this operation. 如果我在IIS中停止了应用程序池,那么我会立即收到503错误,但是我被阻止重新启动应用程序池2分钟,并出现以下错误:无法启动应用程序池/执行此操作时出错。 / Details: / The service cannot accept control messages at this time. /详细信息:/该服务目前无法接受控制消息。 (Exception from HRESULT: 0x80070425) (来自HRESULT的异常:0x80070425)

As you can imagine, this is crippling my productivity. 可以想象,这使我的工作效率下降。 Only started happening a couple of days ago, I haven't made any changes to the code which I would have though would cause this problem... and it doesn't matter which page I touch and recompile anyway, it takes just as long to recover. 只是在几天前才开始发生,我还没有对代码进行任何更改,尽管这会导致此问题……而且无论我接触并重新编译哪个页面都没关系,它只需要很长时间恢复。 Nothing in the event log. 事件日志中没有任何内容。

Any clues as to where to start looking? 关于从哪里开始寻找的任何线索?

Add the following line to your web.config: 将以下行添加到您的web.config中:

 <compilation optimizeCompilations="true" />

related article: http://www.dnnsoftware.com/community-blog/cid/135019/a-small-webconfig-setting-that-can-save-you-development-time 相关文章: http : //www.dnnsoftware.com/community-blog/cid/135019/a-small-webconfig-setting-that-c​​an-save-you-development-time

我遇到了类似的问题,以下修补程序的安装为我解决了该问题: https : //support.microsoft.com/zh-cn/kb/3090034

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM