Derik Whittaker

Syndication

News


Deploying Asp.Net 4.5 site to IIS Error: ManagedRuntimeVersion to v.45

Today I was trying to publish a Asp.net 4.5 site to our server and I received the following error;

The Application pool that you are trying to use has the ‘managedRuntimeVersion’ property set to v4.0. This application requires ‘v4.5’

I thought this was odd so I went to change the App pool, only to see there is no v4.5 option.  After a bit of Goggling my suspicions about v4.5 not having an app pool as v4.5 of .net is inplace update and does not have a new ‘version’.

After a bit more Goggling and looking at StackoverFlow answers I found the solution, although it was not the ‘selected’ solution but oh well.

See I am doing my deploy via a powershell script using pSake and my deploy looked something like this

&$msBuildpath /verbosity:m $projectFileAndPath /T:Rebuild /T:Package /p:"Configuration=$buildMode;Packagelocation=$packageFolder" 
/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True
/p:MSDeployPublishMethod=RemoteAgent /p:MSDeployServiceUrl=$deploymentServer /p:DeployIisAppPath=$deploymentAppPath 
/p:UserName=$deployuser /p:Password=$deploypassword   

 

What I needed to add was the /P:VisualStudioVersion=11.0 switch to force the right compiler.  Once I added this switch my deploy was right as rain.

Till next time,


Posted 12-18-2012 8:28 AM by Derik Whittaker
Filed under: , , ,

[Advertisement]

Comments

buy viagra online wrote re: Deploying Asp.Net 4.5 site to IIS Error: ManagedRuntimeVersion to v.45
on 02-03-2013 2:23 AM

yLjPjf Appreciate you sharing, great article. Keep writing.

buy viagra wrote re: Deploying Asp.Net 4.5 site to IIS Error: ManagedRuntimeVersion to v.45
on 02-03-2013 3:39 AM

NCNOHi A big thank you for your article post.Really looking forward to read more. Awesome.

HaraldV wrote re: Deploying Asp.Net 4.5 site to IIS Error: ManagedRuntimeVersion to v.45
on 03-13-2013 5:40 PM

Thanks!

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)