问题描述
我的网站最初位于目标框架3.5,而我将其更改为4.5,一切正常,当我单击添加了脚本管理器的页面上的按钮时,它显示以下异常:
My website was in initially at target framework 3.5, and i have changed it to 4.5,everything works fine , when i click button on a page where script manager is added it shows following exception:
每当我在页面中单击此编译器按钮时,都会显示上述粘贴(屏幕截图)错误,此错误来自ScriptResource.axd
whenever i click this compiler button in my page it shows the above pasted(screenshot) error, this error comes in ScriptResource.axd
推荐答案
尝试在web.config文件的httphandlers和handlers部分中添加以下行.
try adding below line in your httphandlers and handlers section in web.config file.
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
请在此处发表评论,并让他人知道问题何时解决.
Please comment here and let others know if and when issue is resolved.
这篇关于将网站从目标框架3.5迁移到4.5后,在ScriptResource.asxd中获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!