ScriptResource.axd 404 not found

I have this WebApp in .NET 3.5 using MS Ajax and jQuery UI. It works fine locally, but when I publish it to the statging server, it gives a "Sys" undefined javaScript error. Furhter, I found that the .axd files are not loaded, and this is 404. I checked web.confing and I have the necessary entries in the section. I googled and read every post and could not find a solution for this. Is there anyone who has encountered this problem before?

+5
source share
6 answers

I just ran into this with our server in IIS 6. It was processed, making sure that in the system.web section (different for IIS7).

<httpHandlers>
  <remove verb="*" path="*.asmx"/>
  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
  <add verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>
+11
source

web.config, , IIS 8 "", "".

+2

:

web.config:

<system.webServer>
<handlers>
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode" />
+1

Routing Web Forms. . , . -, -. .Net 4.5

  • RouteConfig.RegisterRoutes(RouteTable.Routes);
  • : RouteConfig.RegisterRoutes(RouteTable.Routes);
  • -
+1

-; . , /web- system.webServer/handlers, , , ScriptResource.axd - voila, ! , IIS , "validate = false" web.config.

0

SmarterASP.Net.

ScriptResource.axd

0

All Articles