要处理此请求,必须在配置中注册 WebResource.axd 处理程序。
“/”应用程序中的服务器错误。要处理此请求,必须在配置中注册 WebResource.axd 处理程序。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<httpHandlers>
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
</system.web>
</configuration>
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: 要处理此请求,必须在配置中注册 WebResource.axd 处理程序。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<httpHandlers>
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
</system.web>
</configuration>
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[InvalidOperationException: 要处理此请求,必须在配置中注册 WebResource.axd 处理程序。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<httpHandlers>
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
</system.web>
</configuration>]
System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrlInternal(Assembly assembly, String resourceName, Boolean htmlEncoded, Boolean forSubstitution, IScriptManager scriptManager) +2517421
System.Web.Handlers.AssemblyResourceLoader.GetWebResourceUrl(Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager) +722
System.Web.UI.ClientScriptManager.GetWebResourceUrl(Page owner, Type type, String resourceName, Boolean htmlEncoded, IScriptManager scriptManager) +167
System.Web.UI.ClientScriptManager.RegisterClientScriptResource(Type type, String resourceName) +67
System.Web.UI.WebControls.BaseValidator.RegisterValidatorCommonScript() +215
System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +69
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496 --------------------编程问答-------------------- http://blog.163.com/panxin299@126/blog/static/1926683020061010144140/ --------------------编程问答--------------------
我的问题是web上的,已经挂上服务器了。本地没问题的。 --------------------编程问答-------------------- 你发给我的我都看过了。 --------------------编程问答-------------------- 这个问题是突然就有了的。这是后台登陆页出现的问题,我查看了一下,说是有了验证控件的问题。
10天前都没有这个问题。 --------------------编程问答-------------------- 检查一下服务器上是不是缺少这个文件 --------------------编程问答--------------------
我的机器上也没有这个文件啊,本地IIS上没问题啊。应该不是这个文件的问题。 --------------------编程问答-------------------- 把应用池 的集成改成经典就可以了。
补充:.NET技术 , ASP.NET