When I migrated Asp.net webform (framework 4.7) website to azure I encountered 404 not found error for WebResource.axd files I have included the handler manually in web.config like the following
<system.webServer>
<handlers>
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader"
preCondition="integratedMode" />
</handlers>
</system.webServer>
I also tried to configure handlers in system.web as well but with no luck.
<system.web>
<httpHandlers>
<add path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader"/>
</httpHandlers>
</system.web>
It only works when I deploy the site locally on IIS. Has anybody encountered this before?,Should I make any specific configuration in azure for that to work?
Click your webapp in local and enter F4, in
Properties,switched themanaged pipeline modefromclassictointegrated, that fix it.Or you could add a handler at
web.config:Refer to this issue.