3
我已经将Elmah添加到了我的ASP.NET MVC(1.0)web应用程序中。“无法执行URL”在ASP.NET MVC 1.0中使用Elmah
对/elmah.axd的请求工作正常,但它们无法正确呈现。挖的有点表明,要/elmah.axd/stylesheet请求被抛出HTTP 500错误:
Failed to Execute URL.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Failed to Execute URL.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Failed to Execute URL.]
System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl(String url, String method, String childHeaders, Boolean sendHeaders, Boolean addUserIndo, IntPtr token, String name, String authType, Byte[] entity, AsyncCallback cb, Object state) +2003857
System.Web.HttpResponse.BeginExecuteUrlForEntireResponse(String pathOverride, NameValueCollection requestHeaders, AsyncCallback cb, Object state) +393
System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) +220
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8682818
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
我检查使用菲尔哈克的RouteDebug.dll路由,有没有出现任何那里的问题 - Elmah请求与Global.asax.cs
中的routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
匹配,因为它应该是 - 我似乎无法找到有关导致错误的更多信息。
我得到同样的“无法执行URL”从任何以及在ELMAH细节环节 - 如:
http://mysite/myMvcApp/elmah.axd/detail?id=FDA51223-4486-4759-9075-3C5DAE82094B
任何想法?
对此有何进展? – Bob 2011-08-04 16:53:51