ASP.NET Ajax client-side framework failed to load .net 4.0

拟墨画扇 提交于 2019-12-03 08:09:58

Just in case this helps somebody else:

I had the same problem - my website work was working in .NET 3.5, but when I updated to .NET 4.0 a Telerik RadTabStrip stopped working.

The problem was the handler entry. This was in the handlers section (under <system.webserver>) in my web.config file:


        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd"
                 type="Telerik.Web.UI.WebResource" verb="*"
                 preCondition="integratedMode,runtimeVersionv2.0"/>
I removed the runtimeVersion2.0 precondition, and it worked.

It's only obvious once you've spotted it :-)

When using IIS7 Integrated Mode, the following entry was required by IIS 7 in the section instead of

<add name="ScriptResource" preCondition="integratedMode"  
verb="GET,HEAD" path="ScriptResource.axd"  
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />   

Thanks, Brennan

If a site works on the ASP.NET Development server and fails on IIS 7+, then the problem might be related to the handlers/modules configuration - IIS 7 in integrated mode looks for handlers in the <system.webServer> while ASP.NET Dev server and IIS 6 look in the <system.web> section. In this case you should make sure that all handlers and modules are correctly registered in both sections, or switch your IIS application pool to classic mode instead of integrated mode.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!