Wednesday, January 21, 2015

HTTP Error 404.17 - Not Found (.Net won't run)


You may receive the following error: HTTP Error 404.17 - Not Found.  The requested content appears to be script and will not be served by the static file handler.
This is because .Net isn't configured correctly in IIS.
I ran into this in Windows Server 8 under IIS - Even after installing .Net 3.5 (and hence 2.0) IIS wasn't configured properly - So the static file handler was trying to handle .aspx requests - Resulting in this error.

The fix is simple:
  • Launch Command Prompt - Start - cmd.exe
  • cd  C:\Windows\Microsoft.NET\Framework64\v2.0.50727
  • aspnet_regiis -ir
You should see output like:
Start installing ASP.NET (2.0.50727).
................
Finished installing ASP.NET (2.0.50727).
At this point if you refresh your page it should work properly.
-----------------------------------

Full error text:

HTTP Error 404.17 - Not Found

The requested content appears to be script and will not be served by the static file handler.

Most likely causes:

  • The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try:

  • If you want to serve this content as a static file, add an explicit MIME map.

Detailed Error Information:

Module    StaticFileModule
Notification    ExecuteRequestHandler
Handler    StaticFile
Error Code    0x80070032
Requested URL    http://localhost:80/login.aspx
Physical Path    c:\SandBox\Mercurial\wwwroot\Admin\login.aspx
Logon Method    Anonymous
Logon User    Anonymous

Ref

No comments:

Post a Comment