Error in ScriptResource - WEB Forms - Aspnet 4.5

juan maximiliano aguilar abanto 541 Reputation points
2022-05-20T12:22:38.477+00:00

Hi
A friend migrated an web site from aspnet 2.0 to aspnet 4.5.
The project has toolscriptmanager. The web sites doesn't work because I can see that there is a same front end error.

204142-image.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SurferOnWww 1,906 Reputation points
    2022-05-21T02:45:55.857+00:00

    Can the following article help?

    ASP.NET 4.5 ScriptManager Improvements in WebForms
    https://devblogs.microsoft.com/dotnet/asp-net-4-5-scriptmanager-improvements-in-webforms/

    In ASP.NET 4.5 or later version, for the server controls which use client script to work properly, the required scripts need to be registered to the ScriptManager and the pages should include the ScriptManger.

    [Edit (added)]

    See the following article if you use the Ajax Control Toolkit.

    How to Use Bundling and CDN
    https://github.com/DevExpress/AjaxControlToolkit/wiki/How-to-use-bundling-and-CDN

    0 comments No comments

  2. Yijing Sun-MSFT 7,061 Reputation points
    2022-05-26T05:53:39.553+00:00

    Hi @juan maximiliano aguilar abanto ,
    You could try to do this:
    replace:

      <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>  
    

    to:

    <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"/>  
    

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.