如何在System.Web.Mvc.MvcHandler上调试500.0 / 0x00000000错误 [英] How to debug 500.0 / 0x00000000 error on System.Web.Mvc.MvcHandler

查看:518
本文介绍了如何在System.Web.Mvc.MvcHandler上调试500.0 / 0x00000000错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了这个奇怪的错误,我无法弄明白。在Windows 8.1,IIS 8.5上运行。该站点在Microsoft Azure上运行正常,因此它必须是本地配置问题。我在IIS Express中遇到与IIS相同的错误。

I'm getting this strange error which I am unable to figure out. Running on Windows 8.1, IIS 8.5. The site runs fine on Microsoft Azure so it must be a local configuration issue. I get the same errors in IIS Express as I do with IIS.

这个问题已经存在了几天,这让我很精神。我甚至无法测试简单的CSS /内容更改(我正在尝试做的事情),而不是每次都要将它们推送到Azure。

The problem has been around for a few days and it's driving me mental. I can't even test simple CSS/Content changes (which is what I am trying to do) without pushing them up to Azure each time to check.

错误:

Module          global.asax
Notification    EndRequest
Handler         System.Web.Mvc.MvcHandler
Error Code      0x00000000
Requested URL   https://localhost:443/
Physical Path   C:\inetpub\wwwroot\dev\
Logon Method    Anonymous
Logon User      Anonymous
Request Tracing Directory C:\inetpub\logs\FailedReqLogFiles

以下是警告前的部分的追踪

Here is the trace for the section just before the warning.

我试过的东西


  • 重新安装IIS,.NET 4.5,Visual Studio

  • 检查权限:IIS_IUSRS可以访问文件夹和文件

  • 安装了一个基本的MVC 5演示应用程序。在网站上完美运行&有问题的应用程序池。

  • 在我的网站目录的根目录中放置一个基本的aspx hello world页面。它在默认网站上加载,但是在相关网站下我收到PageHandlerFactory-Integrated-4.0错误。

  • Reinstall IIS, .NET 4.5, Visual Studio
  • Checked permissions: IIS_IUSRS has access to the folder and files
  • Installed a basic MVC 5 demo app. Runs perfectly under the website & app-pool in question.
  • Put a basic aspx hello world page in the root of my website directory. It loads when in the Default web site, but when under the website in question I get a "PageHandlerFactory-Integrated-4.0" error.

推荐答案

我正在努力处理同样的错误消息,我无法进行任何跟踪或记录。经过几天的研究,我意识到这是Global.asax.cs中一个未处理的例外。我建议您审核Global.asax代码以查看是否有机会发生例外。

I was struggling with this same error message and I couldn't get any tracing or logging to happen. After days of research I realized it was an unhandled exception in Global.asax.cs. I would recommend auditing your Global.asax code to see if there is any opportunity for exceptions to happen.

无论如何,您可能希望遵循最佳实践来处理此类应用程序-level错误将最后一条错误消息输出到自定义页面:

Regardless, you might want to follow the best practice to handle such Application-level errors to output the last error message to a custom page:

http://msdn.microsoft.com/en-us/library/vstudio/24395wz3(v = vs.100).aspx

这篇关于如何在System.Web.Mvc.MvcHandler上调试500.0 / 0x00000000错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆