Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
ok we'eve upgraded our server to Server 2012 from 2008, and made all sites live. This morning i went to install Team Foundation Server on the new server and it failed the pre-checks for configuring application tier.

I then noticed several of our websites had gone down. The error was that it could not dertmine the webPage version, after googling this issue i found i needed to add the key "WebPages:Version value=2.0.0.0" to the appsettings.

1) Could anyone clear up why this was suddenly being required, is this a server 2012 IIS 8+ requirement? as this wasn't ever an issue of the key not being there on previous server

2) Does installing TFS on server 2012 IIS 8+ have anything to do with this change?? Any one else come across this problem, as again no issues on previous server

Many Thanks
Confused Web Developer
Posted

1 solution

What happened that you updated you .NET Framewrok to 4.5 (default on 2012). Now your older config file has no WebPage version info (that the case on project created with VS 2012 or before). now your application will try to choose the default (4.5) framework but unable to work with, so you have to explicitly define what version do you want...
 
Share this answer
 
Comments
Grant Weatherston 2-Jun-14 7:29am    
Ok i understand that, i have the tag with "TargetFramwork=4.0", but why is WebPage:Version set to 2.0.0.0, i tried setting this to 4.0 but doesn't work, can you explain difference between Framwork version and WebPage version ?
Kornfeld Eliyahu Peter 2-Jun-14 7:51am    
TargetFramework has nothing to do with MVC, It's for WebForms run-time compilation...
MVC 4 has WebPages 2.0.0.0 (MVC 3 is 1.0.0.0 and MVC 5 is 3.0.0.0) so settig it to 4.0 will not work.
Grant Weatherston 2-Jun-14 8:58am    
i'm not using MVC though,
Kornfeld Eliyahu Peter 2-Jun-14 9:49am    
You have to (maybe indirectly). The error you are talking about tells that someone was looking for the System.Web.WebPages version...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900