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?
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.
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
For me it worked by doing the following
Install ASP.NET
cd %windir%\Microsoft.NET\Framework64/v4.0.30319
aspnet_regiis.exe -i
Hope it works for you..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With