How to Web Deploy a web application targeting Entity Framework 4.2 June 2011 CTP

感情迁移 提交于 2019-12-30 03:04:08

问题


I'm using Entity Framework 4.2 June 2011 CTP in a small web application (ASP.NET MVC 3) because it supports enums.

I tried to deploy it using web deploy and I get the following error :

The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v4.0'. This application requires 'v4.2'.

How to create an application pool running on .NET 4.2 ?

Edit: The web application does work with a 4.0 app pool so the real question is how to disable the app pool runtime version check when using Visual Studio Publish option ?


回答1:


I found the solution here: http://connect.microsoft.com/VisualStudio/feedback/details/526963/unable-to-correctly-set-managedruntimeversion-in-msdeploy-package

Add this to the web .csproj file in the initial <PropertyGroup> section:

<IgnoreDeployManagedRuntimeVersion>True</IgnoreDeployManagedRuntimeVersion>



回答2:


There is no .Net framework 4.2 out there, i would imagine the .net 4 sp1 is missing or you are not including all needed references. try installing sp1 on the server.



来源:https://stackoverflow.com/questions/7365006/how-to-web-deploy-a-web-application-targeting-entity-framework-4-2-june-2011-ctp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!