Windows 10 IIS ASP.NET/.NET Framework Issue - asp.net

I recently ran this command aspnet_regiis.exe -iru in the path \Windows\Microsoft.NET\Framework64\v4.0.30319 to register IIS with asp.net to get our WCF services running however I am now getting an error trying to load up the home page. Note: The homepage was running before executing that command. This is the error messge:
Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I have tried to run that command again however it says:
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).
Our website is using the .net framework 4.5 and these are the options ticked in add new features section:
IIS/ASP.Net settings
Can anyone shed some light on how I go about fixing this issue.
Thanks in advance.

Related

HTTP Error 404.17 - Not Found - .NET - IIS 10

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
Solved my problem.
Go to Turn windows feature on/off
Expand .NET Framework 4.8 Advanced
Services Expand WCF Services
Check HTTP Activation
Refresh Website and it should work!

How to register ASP.NET on Windows 10?

I got the following error when I run this command: aspnet_regiis.exe -i
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -i
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).
This is my Windows Features configurations:
According to this .NET Framework Versions and Dependencies page, you need at least .NET 4.6 to be compatible with Windows 10.

Register asp.net in IIS 10

I have one issue which is related with registering asp.net in IIS 10.
My environment is Windows 10, IIS 10, VS 2013 and VS 2015 installed, .NET 3.5 is a feature in Windows Features.
I want to use nettcpbinding in iis, so, I installed WCF HTTP activation and WCF Non-HTTP Activation. After it, I will need to re-register asp.net in IIS. I run below command
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i
And I got below result, is asp.net registered correctly in IIS?
Any help would be appreciated.
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).
For this issue, I resolved by below command to install asp.net in IIS.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>dism /online /enable-feature /featurename:IIS-ASPNET45

Registering ASP.NET in IIS

I am trying to deploy the website I built on Visual Studio. I would like to host on IIS instead of the default ASP.NET Development Server so that I can access the website on my phone.
One of the steps I need to do is register ASP.NET on IIS. I run the following in the command prompt:
1)C:\Windows\Microsoft.NET\Framework64\v4.0.30319
2)aspnet_regiis -i
However, I get this error message:
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.
Here are the details of my system:
ASP.NET 4.0
Visual Studio 2010
IIS 10
Windows 10
I have been to the link provided and it is not helpful at all.
Does anyone know how to solve this problem or is there another way for me to host on IIS instead of ASP.NET Development Server?
On windows 10, you can "setup" IIS and asp.net using the Program and Features...
Go to control panel | Program and Features | Turn Windows features on or off
Inside there locate the "Internet Information Services"
There ensure that "World Wide Web Services" is checked (partial) and inside "application development features" the .Net Extensible and asp.net are checked !
(source: planethost.gr)

Can't register .net 4.0 in IIS on windows 8

I tried running aspnet_regiis.exe -ir in an admin cmd but no luck.
Any ideas?
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -ir
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 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.17929) without changing existing web
applica tions to use this version of ASP.Net. This option is not
supported on this version of the operating system. Administr ators
should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn
Win dows Features On/Off" dialog, the Server Manager management tool,
or the dism.e xe command line tool. For more details please see
http://go.microsoft.com/fwlin k/?LinkID=216771. Finished installing
ASP.NET (4.0.30319.17929) without changing existing web appl ications
to use this version of ASP.Net.
whats all this scary talk about install/uninstall ASP.NET 4.5..
The solution for me on Windows Server 2012 was to:
In IIS, Open Modules, Remove the ServiceModel module.
In IIS, Open Handlers, Remove the svc-Integrated handler.
Restart IIS
More here: http://www.codeproject.com/Articles/613812/Solve-IIS-8-Error-Could-not-load-type-System-Servi
The situation that caused this was the fact that I enabled WCF services after I had already set up IIS and .NET 4.5. This caused all of my apps on the server to fail.
After I completed the above steps to get everything except WCF back up and running, I still needed WCF to work. To accomplish that, I then went into "Turn Windows Features On and Off" and enabled .NET Framework 4.5 Features -> WCF Services -> HTTP Activation
aspnet_regiis is deprecated in IIS8. When we install IIS (ASP .NET 4.5 and other components) automatically asp .net gets registered. We don't need to manually register it.
Can you briefly specify the problem you are facing?
Run the following command from an administrative command prompt: dism /online /enable-feature /featurename:IIS-ASPNET45
For Windows 8 client computers, turn on "IIS-ASPNET45" in "Turn Windows Features On/Off" under "Internet Information Services-> World Wide Web Services -> Application Development Features -> ASP.NET 4.5".
reference: http://support.microsoft.com/kb/2736284
I was facing the same issue as described above. It didn't work even after running following command
dism /online /enable-feature /featurename:IIS-ASPNET45
The solution for me was to install patch to VS 2010 SP1.
Just to give the background I have Windows 10 and VS 2010 SP1 and was facing issue when running a ASP.Net 4.6 site.
Following are links for Visual Studio versions:-
VS 2010 SP1 =>
https://support.microsoft.com/en-us/help/3002340/unexpected-dialog-box-appears-when-you-open-projects-in-visual-studio
VS 2012 =>
https://support.microsoft.com/en-us/help/3002339/unexpected-dialog-box-appears-when-you-open-projects-in-visual-studio
VS

Resources