我们可以在 Windows Server 2003 R2 上部署 .net 4.0 应用程序吗

我们可以在 Windows Server 2003 R2 上部署 .net 4.0 应用程序吗

我们现有的服务器具有以下配置:

硬件:Intel(R) Xeon(R) CPU E5430 @ 2.66 GHz 2.67 GHz,8.00 GB RAM

已安装的软件:MS Windows Server 2003 标准 x64 版 Service Pack 2

互联网信息服务:IIS 版本 6.0

MS .net 框架:3.5

我们可以将此配置升级为.net 4.0吗?

答案1

由于您使用的是 SP2,所以是的。

之前已经有人问过这个问题: https://stackoverflow.com/questions/3347722/can-i-run-net-4-0-web-applications-on-windows-server-2003

它指向这里的一篇文章: http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6

还有 .net 4 框架安装程序的 Microsoft 页面http://www.microsoft.com/en-gb/download/details.aspx?id=17718显示要求为:

支持的操作系统

Windows 7、Windows 7 Service Pack 1、Windows Server 2003 Service Pack 2、Windows Server 2008、Windows Server 2008 R2、Windows Server 2008 R2 SP1、Windows Vista Service Pack 1、Windows XP Service Pack 3 •Windows XP SP3 •Windows Server 2003 SP2 •Windows Vista SP1 或更高版本 •Windows Server 2008(不支持服务器核心角色) •Windows 7 •Windows Server 2008 R2(不支持服务器核心角色) •Windows 7 SP1 •Windows Server 2008 R2 SP1 •

支持的体系结构:

•x86 •x64 •ia64(某些功能在 ia64 上不受支持,例如 WPF)

硬件要求:

•建议最低配置:奔腾 1 GHz 或更高,512 MB RAM 或更多 •最小磁盘空间:•x86 – 850 MB •x64 – 2 GB •

先决条件:

•Windows Installer 3.1 或更高版本 •Internet Explorer 5.01 或更高版本

答案2

如果您下载.NET 4.0,您将能够使用此框架部署应用程序。

但是,要使其正常工作还需要其他步骤。安装 .NET 4.0 后,从文件夹中运行以下命令C:\windows\system32

cscript iisext.vbs /EnFile C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

请注意实际版本号可能根据 .NET 的当前版本号而有所不同。然后,​​运行cscript iisext.vbs /ListFile,您应该会看到 4.0 的 .dll 文件旁边有一个“1”。

祝你好运!

参考:http://johan.driessen.se/posts/getting-an-asp.net-4-application-to-work-on-iis6

相关内容