Reputation: 113
This is my first time publishing a web forms project in ASP.NET. I have encountered may http error but this one i do not understand. My IIS version is 10.0
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
I i have seen a lot of solutions in the internet there is one in common and this is running
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i in cmd.
But I do get this error:
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.0).
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.0).
I check my .Net version and it is 3.5 and 4.8 on the Turn windows features on/off
. I did select the 4.8 because if causes a lot of error. Or do I need to select it?
If I select the .Net 4.8 Version I get this error.
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Which is easy to resolve? Or do I need to resolve both?
If you have any solutions please let me know.
Thanks in advance
Upvotes: 3
Views: 4558
Reputation: 113
Solved my problem.
Refresh Website and it should work!
Upvotes: 6