如何Web部署面向Entity Framework 4.2 2011年6月CTP的Web应用程序 [英] How to Web Deploy a web application targeting Entity Framework 4.2 June 2011 CTP

查看:137
本文介绍了如何Web部署面向Entity Framework 4.2 2011年6月CTP的Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个小型Web应用程序(ASP.NET MVC 3)中使用Entity Framework 4.2 June 2011 CTP,因为它支持枚举。

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

我试图部署它使用Web部署,我收到以下错误:

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


您尝试使用的应用程序池具有
'contagedRuntimeVersion'属性设置为'v4.0'。此应用程序
需要'v4.2'。

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

如何创建在.NET 4.2上运行的应用程序池?

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

编辑: Web应用程序可以与4.0应用程序池一起使用,因此真正的问题是如何在使用Visual Studio时禁用应用程序池运行时版本检查发布选项?

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 ?

推荐答案

我在这里找到了解决方案: http://connect.microsoft.com/VisualStudio/feedback/details/526963/unable-to -correctly -set-managedruntimeversion-in-msdeploy-package

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

将其添加到初始<中的.csproj文件中。 PropertyGroup> section:

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

<IgnoreDeployManagedRuntimeVersion>True</IgnoreDeployManagedRuntimeVersion>

这篇关于如何Web部署面向Entity Framework 4.2 2011年6月CTP的Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆