Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix 404.17 error on Win Server 2k8 and IIS7

Tags:

asp.net

iis-7

I've setup a new .net 2.0 website on IIS 7 under Win Server 2k8 and when browsing to a page it gives me a 404.17 error, claiming that the file (default.aspx in this case) appears to be a script but is being handled by the static file handler. It SOUNDS like the module mappings for ASP.Net got messed up, but they look fine in the configurations. Does anyone have a suggestion for correcting this error?

like image 691
Scott Mayfield Avatar asked Sep 17 '08 20:09

Scott Mayfield


3 Answers

I had this problem on IIS6 one time when somehow the ASP.NET ISAPI stuff was broke.

Running

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i 

to recreate the settings took care of it.

like image 198
Jonathan Rupp Avatar answered Oct 02 '22 18:10

Jonathan Rupp


This solution worked for me... (I've had aspnet_regiis.exe -i do some damage)

http://forums.iis.net/t/1157725.aspx

1. Locate your App Pool and Right Click
2. Select Basic Settings
3. Select your current .Net Framework Version
4.Restart the App Pool 
like image 43
Zim Avatar answered Oct 02 '22 19:10

Zim


For me it worked by doing the following

Install ASP.NET

cd %windir%\Microsoft.NET\Framework64/v4.0.30319
aspnet_regiis.exe -i
  • Next Go to IIS Manager and click on the server (root) node.
  • In features view, IIS section, open "ISAPI & CGI Restrictions"
  • Right-click the ASP.NET 4 restriction column and right-click to Allow

Hope it works for you..

like image 24
ESiddiqui Avatar answered Oct 02 '22 20:10

ESiddiqui