Windows Server 2012 + IIS + NET Framework version error - asp.net

I'm trying to run an ASP.NET application on my Windows Server 2012 machine.
I followed all the steps that I think were required.
When I try to access the webpage I get this:
The "Application Pool" is set to version 4.0.
In the installed programs, NET Framework 4.5 is shown.
Thank you.
[EDIT]
After tried to install this NET Framework 4.5.2
NET Framework
I got this:

The error message is straightforward:
The targetFramework attribute currently references a version that is later than the installed version of the .NET Framework.
Install .NET 4.5.2 or later on your server.
Just because you see that "4.5" is installed does not mean 4.5.2 is installed. See here for version information and release dates https://en.wikipedia.org/wiki/.NET_Framework_version_history
4.5 with Visual Studio 2012 - 2012-08-15
4.5.1 with Visual Studio 2013 - 2013-10-17
4.5.2 with Windows 8.1 - 2014-05-05
4.6 with Visual Studio 2015 - 2015-07-20
Here is the offline installer for the .NET Framework 4.6.2 which was released in July 2016: https://www.microsoft.com/en-us/download/details.aspx?id=53344
Make sure you install all Windows Updates first, and check your Event Logs for any error reports.

Related

Manually configure your web server for ASP.NET 4.0 in order for your site to run correctly

I am getting the attached error while trying to setup and run projects from the Microsoft Visual Studio Express 2012 for Web.
I have tried the following with no luck:
Tried uninstalling .net framework versions VS 2012 web express error(in control panel the software framework is not getting listed)
Tried aspnet_regiis.exe but that produces the error that already framework 4.0 multi-targeting pack is available, Can anyone advice how to uninstall this package and install .net 4.5 in windows 10 machine.

How do I get Visual Studio 2017 Evaluation to recognize .NET Framework 4.6.2 installed?

1) I did a clean install of Visual Studio 2017 Professional Evaluation copy on a brand new Dell laptop.
2) I tried to import and open a project solution which had been running on another computer with Visual Studio 2015 Professional full copy. Both computers run on Windows 10 Professional and fully updated.
3) Received error from Visual Studio upon solution import which said I could not load the project unless I changed the target of the.NET framework from 4.6.2 to .NET 4.6.1. because the 4.6.2 was not found on my machine.
4) Verified that 4.6.2 was in the registry
5) Tried to download a fresh install of 4.6.2 but it would not install because it also found 4.6.2 on the machine.
6) I also tried to load the project as 4.6.1 and then go in via the properties to change the target to 4.6.2 but had the same results.
Any suggestions as to how I can either get Visual Studio 2017 to recognize the 4.6.2 or uninstall 4.6.2 and reinstall?
The Runtime version and Target versions are different things. You need to run Visual Studio 2017 setup and select .net 4.6.2 SDK/Targeting pack under Individual Components:
They are not selected by default in VS2017. You have to do this for .net 4.7 as well, this is also not installed by default.
You need to download and install the .NetFramework 4.6.2 Developer pack.(https://www.microsoft.com/en-us/download/details.aspx?id=53321)
Check here. In effect, you need install .NET Framework 4.6.2 Developer Pack
https://superuser.com/questions/1254177/visual-studio-doesnt-recognize-net-framework-4-6-2-is-installed

.NET 4.5 framework is installed and enabled,but not recognized by sharepoint installation guide

I have .net 4.5 framework installed on windows server 2012 r2. I want to verify it under registry ,but it is not showing up in the registry. ( HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP) . The NDP subregistry has only client folder but not the 'FULL' showing the 4.5 version. Am trying to install sharepoint 2013 sp1, which errors on saying " This product requires Microsoft .NET frame 4.5".
I see that .net 4.5 is installed,but is not recognized by the sharepoint installation setup. How do i verify this.
screenshot of registry,sharepoint installation setup and server feature saying that .NET 4.5 is installed.

ASP.NET 4.5 is not registered after upgrading to Windows 10

I have a WCF web service which was working on Windows 8.1. After upgrading to Windows 10, I noticed that the IIS is not installed anymore. So I installed it along with ASP.NET 4.6 in Windows features. Now, when I open the project in VS2013 it says that ASP.NET 4.5 is not registered. Shouldn't it work with ASP.NET 4.6?
I had the same issue and was able to fix it by installing Visual Studio 2013 Service Pack 5 (the latest at that time).
You can download it from here:
https://www.visualstudio.com/en-us/news/vs2013-update5-vs.aspx
Make sure to select the right version according to the Visual Studio version you have.

Is .NET Framework 4.0 installed as part of Visual Studio 2010 install?

I know .NET Framework 4.0 is available as separate install but...
Is .NET Framework 4.0 installed as a part of Visual Studio 2010 Professional or does VS 2010 install prompt for 4.0 install at all or not?
Should it be a separate install, should it matter if installed before or after of VS install?
I want to know this for documentation purpose. My search on internet failed to return satisfactory results.
Edit:
Then what about prior versions(2.0, 3.5)? Are they installed as well? Because VS 2010 supports those versions as well for development.
Thanks for prompt answers guys.
here is a list of all the prerequisites installed with Visual Studio 2010 >
prerequisites
.Net Framework 3.5 (install also includes .NET 2.0 and 3.0) and .Net Framework 4.0 are on the list and installed by default.
Yes, of course .NET 4.0 is installed with Visual Studio 2010.
Yes it does. The VS2010 installer checks for the presence of .NET 4.0 and installs it if it can't find it. The framework has to be installed prior to the installation of VS 2010 itself.
Of course. How could VS2010 support coding against .NET 4.0 if it wasn't installed?

Resources