gpt4 book ai didi

asp.net-mvc - 在ASP.NET MVC 1.0中使用Elmah的“执行URL失败”

转载 作者:行者123 更新时间:2023-12-01 12:45:02 25 4
gpt4 key购买 nike

我已将Elmah添加到我的ASP.NET MVC(1.0)Web应用程序中。

对/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

我已经检查了使用Phil Haack的RouteDebug.dll进行的路由,并且那里似乎没有任何问题-Elmah请求与 routes.IgnoreRoute("{resource}.axd/{*pathInfo}");中的 Global.asax.cs匹配,应该匹配-我似乎找不到更多信息是什么导致错误。

我也从Elmah的任何详细信息链接中获得相同的“无法执行URL”,例如:
http://mysite/myMvcApp/elmah.axd/detail?id=FDA51223-4486-4759-9075-3C5DAE82094B

有任何想法吗?

最佳答案

即使我在IIS7上运行,这也对我有用:


<httpModules>
....
<add name="FixIIS5xWildcardMappingModule" type="Elmah.FixIIS5xWildcardMappingModule, Elmah"/>
</httpModules>

到你的 web.config
here得到它。

希望能帮助到你...

关于asp.net-mvc - 在ASP.NET MVC 1.0中使用Elmah的“执行URL失败”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5869780/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com