将网站从目标框架3.5迁移到4.5后,在ScriptResource.asxd中获取错误 [英] Getting error in ScriptResource.asxd after migrating website from target framework 3.5 to 4.5

查看:71
本文介绍了将网站从目标框架3.5迁移到4.5后,在ScriptResource.asxd中获取错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站最初位于目标框架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:

Sys.WebForms.PageRequestManagerServerErrorException:Sys.WebForms.PageRequestManager ServerErrorException:未知错误在服务器上处理请求时发生.状态码从服务器返回的是:500

Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

每当我在页面中单击此编译器按钮时,都会显示上述粘贴(屏幕截图)错误,此错误来自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中获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆