加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

如何在Windows Server 2012 R2中的IIS 8.5上注册Dot net framewo

发布时间:2020-12-14 02:08:20 所属栏目:Windows 来源:网络整理
导读:我从 this路径和安装中安装了dot net framework 4.6.2.现在想在IIS中注册这个. 如果它是早期的框架版本(2.0,3.5等)在早期的服务器(对于Eg Windows 2003),我会输入以下命令 在适当的路径. C:WindowsMicrosoft.NETFramework64v4.0.30319aspnet_regiis -i
我从 this路径和安装中安装了dot net framework 4.6.2.现在想在IIS中注册这个.

如果它是早期的框架版本(2.0,3.5等)&在早期的服务器(对于Eg Windows 2003),我会输入以下命令
在适当的路径.

C:WindowsMicrosoft.NETFramework64v4.0.30319>aspnet_regiis -i

但是,我在此服务器上找不到4.6.2的文件夹路径. &安培;甚至从这里安装此命令会给出以下消息:

Microsoft (R) ASP.NET RegIIS version 4.0.30319.0 Administration
utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved. Start
installing ASP.NET (4.0.30319.0). This option is not supported on
this version of the operating system. Administrators should instead
install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Windows
Features On/Off” dialog,the Server Manager management tool,or the
dism.exe command line tool. For more details please see
07001. Finished installing
ASP.NET (4.0.30319.0).

我知道消息中的Web链接是4.5,因为4.5是4.0的就地升级.

我的网站给出了这个错误:

The ‘targetFramework’ attribute in the element of the
Web.config file is used only to target version 4.0 and later of the
.NET Framework (for example,”).
The ‘targetFramework’ attribute currently references a version that is
later than the installed version of the .NET Framework. Specify a
valid target version of the .NET Framework,or install the required
version of the .NET Framework.

web.config的相关部分是:

<system.web>
    <compilation debug="true" targetFramework="4.6.2"/>
    <httpRuntime targetFramework="4.6.2"/>
</system.web>

解决方法

事实证明我下载了错误的安装程序.它是4.6而我需要4.6.2可用 here.

这个问题值得删除,但我不会因为其他人可能会犯同样的罪.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读