I'm developing a web application project in .NET Framework 4.5, ASP.NET 4.5, MVC 4 in Visual Studio 2012 Pro, SP1, executing in Visual Studio Development Server on a Windows 7 Ultimate, SP1 computer.
When I run my ASP.NET 4.5 web application project using CTRL-F5 in VS Development Server on VS 2012, and I get an error screen, the error screen shows a different .NET version than the development IDE .NET version selected for the project?
The error screen shows this: "Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 "
When I view the properties for the project, the Application tab Target Framework field shows .NET Framework 4.5
The Control Panel Pograms and Features shows Microsoft .NET Framework 4.5 is installed.
I'm not concerned about the error, I know what it is. I just want to know why it shows a different version than what I am expecting.
I attempted to install .NET Framework 4.0 using the link you privided. It gives this message: "Your installation will not occur. See below for reason why. Same or higher version of .NET Framework 4 has already been installed on this computer.".
There is a Continue button and a Close button. The Continue is not accessible. The only option is to Close.
Your explanation is very puzzling. If I have .NET Framework 4.0 installed, why does the Programs and Features show as 4.5 and the program that I have that requires 4.5 is working fine. Also, I had 4.0 installed before installing the 4.5 version.
If it won't let me install 4.0, then it must know that I already have 4.5 installed.
Any ASP.NET project targetted .NET Framework 4.5 will actually using
.NET Framework 4.0 to host it. You can see this at the machine which install with IIS and
.NET Framework 4.5. Just look at the Application Pools at IIS Manager.
In simple description, .NET Framework 4.5 is running on top of
.NET Framework 4.0. This also happen to .NET Framework 3.5,
.NET Framework 3.0 which using .NET Framework 2.0 to host the ASP.NET applications.
No matter how much time you spend on coding. Wish you happy coding.
My Technical Blog
Any ASP.NET project targetted .NET Framework 4.5 will actually using
.NET Framework 4.0 to host it. You can see this at the machine which install with IIS and
.NET Framework 4.5. Just look at the Application Pools at IIS Manager.
I have no idea of what to look for in IIS Manager.
I'm not going to worry about it. Everything is working fine. I was just puzzled as to why it showed .NET Framework 4.0 on the error screen.
I have no idea of what to look for in IIS Manager.
You are right. Actually you no need worry about it. But just have to understand it. As you can see from above img, the .NET 4.5 application pools are using .NET Framework 4.0 runtime.
No matter how much time you spend on coding. Wish you happy coding.
My Technical Blog
Marked as answer by Angie xu - MSFT on Dec 10, 2012 06:11 AM
TGirgenti
Member
129 Points
165 Posts
Error screen shows a different .NET version than the development IDE .NET version selected for th...
Dec 04, 2012 01:15 PM|LINK
Hello,
I'm developing a web application project in .NET Framework 4.5, ASP.NET 4.5, MVC 4 in Visual Studio 2012 Pro, SP1, executing in Visual Studio Development Server on a Windows 7 Ultimate, SP1 computer.
When I run my ASP.NET 4.5 web application project using CTRL-F5 in VS Development Server on VS 2012, and I get an error screen, the error screen shows a different .NET version than the development IDE .NET version selected for the project?
The error screen shows this: "Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 "
When I view the properties for the project, the Application tab Target Framework field shows .NET Framework 4.5
The Control Panel Pograms and Features shows Microsoft .NET Framework 4.5 is installed.
I'm not concerned about the error, I know what it is. I just want to know why it shows a different version than what I am expecting.
Is my project using .NET 4.0 or .NET 4.5?
Any help would be gratefully appreciated.
Thanks, Tony
Angie xu - M...
All-Star
18045 Points
1550 Posts
Microsoft
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 01:01 AM|LINK
Hi
.NET Framework Version 4.5 is the update packages of .NET Framework Version 4.0,
so I think you should install .NET Framework Version 4.0 first, and then install .NET Framework Version 4.5.
Microsoft .NET Framework 4 - http://www.microsoft.com/en-us/download/details.aspx?id=17851
hope it helps you.
Feedback to us
Develop and promote your apps in Windows Store
TGirgenti
Member
129 Points
165 Posts
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 02:40 AM|LINK
Hello Angie.
Thanks for your help.
I attempted to install .NET Framework 4.0 using the link you privided. It gives this message: "Your installation will not occur. See below for reason why. Same or higher version of .NET Framework 4 has already been installed on this computer.".
There is a Continue button and a Close button. The Continue is not accessible. The only option is to Close.
Your explanation is very puzzling. If I have .NET Framework 4.0 installed, why does the Programs and Features show as 4.5 and the program that I have that requires 4.5 is working fine. Also, I had 4.0 installed before installing the 4.5 version.
If it won't let me install 4.0, then it must know that I already have 4.5 installed.
Thanks,
Tony
CruzerB
Contributor
5399 Points
1098 Posts
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 02:54 AM|LINK
Hi,
Any ASP.NET project targetted .NET Framework 4.5 will actually using .NET Framework 4.0 to host it. You can see this at the machine which install with IIS and .NET Framework 4.5. Just look at the Application Pools at IIS Manager.
In simple description, .NET Framework 4.5 is running on top of .NET Framework 4.0. This also happen to .NET Framework 3.5, .NET Framework 3.0 which using .NET Framework 2.0 to host the ASP.NET applications.
My Technical Blog
CruzerB
Contributor
5399 Points
1098 Posts
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 02:55 AM|LINK
I don't think you need to install .NET Framework 4.0 for this case.
My Technical Blog
TGirgenti
Member
129 Points
165 Posts
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 03:04 AM|LINK
I have no idea of what to look for in IIS Manager.
I'm not going to worry about it. Everything is working fine. I was just puzzled as to why it showed .NET Framework 4.0 on the error screen.
Thanks,
Tony
CruzerB
Contributor
5399 Points
1098 Posts
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 03:15 AM|LINK
You are right. Actually you no need worry about it. But just have to understand it. As you can see from above img, the .NET 4.5 application pools are using .NET Framework 4.0 runtime.
My Technical Blog
Angie xu - M...
All-Star
18045 Points
1550 Posts
Microsoft
Re: Error screen shows a different .NET version than the development IDE .NET version selected fo...
Dec 06, 2012 04:24 AM|LINK
Hi Tony
Your project uses .NET 4.5, and your project has used new features of .NET 4.5.
Even though you have installed the .NET 4.5, It displays .NET Framework Version:4.0.30319 error information.
In general we recommand that install .net 4.0 first before install .net 4.5.
Moreover, I agree with CruzerB's idea for this. Thanks
Kind regards
Feedback to us
Develop and promote your apps in Windows Store