Getting error in ScriptResource.asxd after migrati

2019-07-19 07:24发布

问题:

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.PageRequestManagerServerErrorException: 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.