在IIS Express上调试Azure Web角色时出现错误500.19

时间:2015-01-28 12:30:22

标签: debugging web-config iis-express azure-web-roles

我有一个在Azure云服务上运行的MVC 3.0 Web应用程序作为Web角色。在Visual Studio 2013下调试应用程序时,如果我在断点之间延迟太长时间,则Web角色将关闭,IIS Express 8.0会向浏览器响应错误500.19。

我已将项目设置为在IIS Express和emulator express中运行。 Azure模拟器启动时,会在文件夹中创建名为 applicationHost.config 的文件:

C:\ Users \< user> \ AppData \ Local \ dftmp \ Resources \ some random guid> \ temp \ temp \ RoleTemp

我在MVC应用程序的控制器中设置了一个breackpoint。然后,如果调试会话花费超过一分钟(更多或更少),上面的文件将被删除,我的浏览器中出现错误500.19。之后,我无法访问该应用,因为在每次请求中我都会遇到相同的错误。

检查avobe文件夹中的其他文件后,我发现了一个名为 WaHostBootstraper.log 的日志,日志的最后几行是:

[00010272:00004636, 2015/01/27, 19:59:29.924, INFO ] Role host process registered.
[00010272:00006280, 2015/01/27, 19:59:30.350, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:30.350, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:30.850, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:30.850, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:31.350, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:31.350, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:31.851, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:31.851, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:32.352, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:32.352, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:32.853, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:32.853, INFO ] Client reported status 1.
[00010272:00006280, 2015/01/27, 19:59:33.353, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:33.379, INFO ] Client reported status 0.
[00010272:00006280, 2015/01/27, 19:59:33.880, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:33.887, INFO ] Client reported status 0.
[00010272:00006280, 2015/01/27, 19:59:48.889, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 19:59:48.916, INFO ] Client reported status 0.
[00010272:00006280, 2015/01/27, 20:00:03.917, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00006280, 2015/01/27, 20:00:03.922, INFO ] Client reported status 0.
[00010272:00006280, 2015/01/27, 20:00:18.923, INFO ] Getting status from client WaIISHost.exe (5056).
[00010272:00005408, 2015/01/27, 20:01:33.926, INFO ] Sending shutdown notification to client WaIISHost.exe (5056).

我使用的是Azure SDK 2.5,Azure模拟器2.8。

0 个答案:

没有答案