2013-10-03 24 views
2

我在我的網站中使用ScriptManager和UpdatePanel,當它從Visual Studio中調試時,所有東西都在本地機器中工作2012但當它在網絡服務器託管時,它提供了幾個錯誤:ASP.NET 4.5 Ajax在本地工作正常,但在Web服務器託管時Ajax客戶端框架無法加載

未捕獲的錯誤:ASP.NET Ajax客戶端框架未能加載。 未捕獲參考錯誤:SYS沒有定義

,也因爲它說500內部服務器錯誤

+0

那麼,這是一個相當普遍和臭名昭着的錯誤^ ^。您是否啓用了URL重寫? 此外,請嘗試[這](http://stackoverflow.com/a/9522040/375304) – CharlesAD

+0

非常感謝這幫助了很多 – gayan1991

+0

不要猶豫,發佈你的問題的答案,這將有助於其他人面對同樣的問題。 – CharlesAD

回答

0

我已經改變了我的web.config文件中的一個,如下

它不會加載scriptresources.axd文件
<modules> 
     <add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" /> 
    </modules> 
    <handlers> 
     <remove name="WebServiceHandlerFactory-Integrated"/> 
     <remove name="ScriptHandlerFactory"/> 
     <remove name="ScriptHandlerFactoryAppServices"/> 
     <remove name="ScriptResource"/> 
     <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" /> 
    </handlers> 
    </system.webServer> 
相關問題