如何在iis7中安装4.5框架 [英] How to Install 4.5 framework in iis7

查看:487
本文介绍了如何在iis7中安装4.5框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iis7中安装4.5框架。

解决方案

微软特别擅长使这个混乱!



.NET 4.5是4.0的就地升级;你不会在AppPool的属性中看到它被列为单独的版本。



如果你在服务器上安装了4.5,请将你的AppPool设置为v4 .0\" 。 web.config 文件中有一些设置是让您的应用程序使用4.5所必需的,但Visual Studio应该为您处理:

 <   system.web  >  
< 编译 targetFramework = 4.5 / >
< httpRuntime targetFramework = 4.5 requestValidationMode = 4.5 / >
< / system.web >


How to Install 4.5 framework in iis7.

解决方案

Microsoft are particularly good at making this confusing!

.NET 4.5 is an in-place upgrade to 4.0; you won't see it listed as a separate version in the properties of the AppPool.

If you've installed 4.5 on the server, set your AppPool to "v4.0". There are some settings in the web.config file which are required to get your application to use 4.5, but Visual Studio should take care of that for you:

<system.web>
    <compilation targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" requestValidationMode="4.5" />
</system.web>


这篇关于如何在iis7中安装4.5框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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