Getting error in ScriptResource.asxd after migrating website from target framework 3.5 to 4.5

泪湿孤枕 提交于 2019-12-24 03:12:23

问题


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: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

whenever i click this compiler button in my page it shows the above pasted(screenshot) error, this error comes in ScriptResource.axd


回答1:


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.



来源:https://stackoverflow.com/questions/16717186/getting-error-in-scriptresource-asxd-after-migrating-website-from-target-framewo

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