Azure app service server side script access

2024-04-09T18:13:16.5+00:00

Dear team,

I have an application which uses server side script WebResource.axd and ScriptResource.axd . When i publish this app to azure app service i am getting 403 forbidden for these two request always .

I am using

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />

and in web.config handler -

<system.webServer>

<handlers>

<remove name="WebResource" />

<add name="WebResource" verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode" />

</handlers>

</system.webServer>

Also ,I am using EntraID for SSO and app is restricted to user assignment . Could you please help

2024-04-09_08h44_53

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SurferOnWww 4,631 Reputation points
    2024-04-10T02:10:45.41+00:00

    Please try the Script Mapping available in ASP.NET 4.5 or later to avoid a use of WebResource.axd and ScriptResource.axd. For details please see the following Microsoft blog:

    ASP.NET 4.5 ScriptManager Improvements in WebForms

    The Script Mapping is made available by default in the ASP.NET Web Forms project created by the template of Visual Studio 2015 or later. The master page includes the ScriptManager control in which the ScriptReferences are registered as shown below:

    ScriptMapping


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.