gpt4 book ai didi

iis - 如何在Windows Server 2012 R2中的IIS 8.5上注册Dot Net Framework 4.6.2

转载 作者:行者123 更新时间:2023-12-03 16:00:50 24 4
gpt4 key购买 nike

我从this路径安装了点网框架4.6.2,现在想在IIS中注册它。

如果它是较早的框架版本(2.0、3.5等)和较早的服务器(例如Windows 2003),则应输入以下命令
在适当的路径。

C:\Windows\Microsoft.NET\Framework64\v4.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 http://go.microsoft.com/fwlink/?LinkID=216771. 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

这个问题值得删除,但是我不会因为其他问题犯同样的罪。

关于iis - 如何在Windows Server 2012 R2中的IIS 8.5上注册Dot Net Framework 4.6.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42070848/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com