Got HTTP Error 404.17 while setting up asp.net project onto IIS 8.0

五迷三道 提交于 2019-12-22 05:07:04

问题


I am trying to set up an existing asp.net application onto IIS 8.0 on my windows 8 machine and it giving me the following error message.

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

I googled for a while and trying to solve this problem with several solutions such as registering asp.net manually. However,it is still not working. Most of the solutions are for IIS 7.5 and the problem is the same or not.

Any idea! really appreciate.


回答1:


As the blogger that Gearhart refers to points out, the problem may be that .NET 3.5 is not installed for IIS. 3.5 handles the down-level apps including 2.0.

The procedure in the blog looks simple and may work fine. However the "official" procedure from Microsoft looks different:

Step 1: Install IIS and ASP.NET Modules
http://technet.microsoft.com/en-us/library/hh831475.aspx

Scroll down to the section on Windows 8. (I'm using Server 2012 and the procedure for that worked for me.)




回答2:


Had the same problem se blow link for solution

http://www.bitshop.com/Blogs/tabid/95/EntryId/110/-Net-wont-run-HTTP-Error-404-17-Not-Found.aspx




回答3:


I had this issue on Server 2012 R2. For me the fix documented here worked.

In essence...

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. HTH




回答4:


Thanks it work.

I had the same error...and i run command prompt

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:8080/WebForms/index.aspx Physical Path C:\inetpub\wwwroot\HRMS\WebForms\index.aspx Logon Method Anonymous Logon User Anonymous Request Tracing Directory C:\inetpub\logs\FailedReqLogFiles



来源:https://stackoverflow.com/questions/15395665/got-http-error-404-17-while-setting-up-asp-net-project-onto-iis-8-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!