我检查了一个项目,它在项目中使用 ajax updatepanel。通常,它在浏览器中打开没有任何问题。(我使用 F12>Console 检查)
当我按CTRL + F5清除缓存而不是出现错误时:
ScriptResource.axd net::ERR_ABORTED 500
WebResource.axd net::ERR_ABORTED 500
Jquery is not defined //still in bundle
或者当我尝试使用隐身模式打开 google chrome 时,我收到以下错误:
Failed to load resource: the server responded with a status of 500 () ScriptResource.axd (MicrosoftAjax.js)
Failed to load resource: the server responded with a status of 500 () ScriptResource.axd (MicrosoftAjaxWebForms.js)
Web.Config 设置
<httpHandlers>
<add path="ScriptResource.axd" verb="GET" type="System.Web.Handlers.ScriptResourceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
</httpHandlers>
你有什么主意吗?如何解决这些问题?