首页 \ 问答 \ 如何在Windows Server 2012 R2中的IIS 8.5上注册Dot net framework 4.6.2(How to register Dot net framework 4.6.2 on IIS 8.5 in Windows Server 2012 R2)

如何在Windows Server 2012 R2中的IIS 8.5上注册Dot net framework 4.6.2(How to register Dot net framework 4.6.2 on IIS 8.5 in Windows Server 2012 R2)

我从这路径安装了dot net framework 4.6.2,现在想在IIS中注册它。

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

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i 

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

Microsoft(R)ASP.NET RegIIS版本4.0.30319.0管理实用程序,用于在本地计算机上安装和卸载ASP.NET。 版权所有(C)Microsoft Corporation。 版权所有。 开始安装ASP.NET(4.0.30319.0)。 此版本的操作系统不支持此选项。 管理员应使用“打开/关闭Windows功能”对话框,服务器管理器管理工具或dism.exe命令行工具,使用IIS8安装/卸载ASP.NET 4.5。 有关详细信息,请参阅http://go.microsoft.com/fwlink/?LinkID=216771 。 完成安装ASP.NET(4.0.30319.0)。

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

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

Web.config文件元素中的“targetFramework”属性仅用于定位.NET Framework 4.0及更高版本(例如,'')。 “targetFramework”属性当前引用的版本晚于安装的.NET Framework版本。 指定.NET Framework的有效目标版本,或安装所需的.NET Framework版本。

web.config的相关部分是:

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

I installed dot net framework 4.6.2 from this path & now want to register this in IIS.

If it was a earlier framework version (2.0,3.5,etc ) & an earlier server ( For Eg Windows 2003), I would have typed the following command in the appropriate path.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i 

However, I cannot find the folder path of 4.6.2 on this server. & even installing this command from here gives the below message :

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).

I know the web link in message is for 4.5 because 4.5 is an in-place upgrade for 4.0.

My website gives this error :

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.

The relevant part of web.config is :

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

原文:https://stackoverflow.com/questions/42070848
更新时间:2023-08-08 15:08

最满意答案

这对于异步代码来说并不是那么冗长...特别是如果你考虑到你可以直接将函数innerCheck传递给一个promise:

// this unbelievably complex block of code gets the id of the 
// field argument.  If string was passed, the fieldid is just that .
if (typeof field === 'string') {
    innerCheck(field);
} else {
    field.getAttribute('id').then(innerCheck); 
}

应该那么容易


This is not that verbose for an asynchronous code... Especially if you take into account that you can directly pass the function innerCheck to a promise:

// this unbelievably complex block of code gets the id of the 
// field argument.  If string was passed, the fieldid is just that .
if (typeof field === 'string') {
    innerCheck(field);
} else {
    field.getAttribute('id').then(innerCheck); 
}

Should be just that easy

相关问答

更多
  • 使用此处提供的答案的变体结束: 如何将焦点设置在我的网页的一部分上,然后向下滚动 更改它,以便函数只将元素作为可重用性的参数。 似乎工作。 var ptor = protractor.getInstance(); var scrollIntoView = function (element) { arguments[0].scrollIntoView(); }; describe( "Register page", function () { browser.get( "#/register ...
  • 是的, expect() ,如果与Protractor ,可以理解承诺 - 它可以在做出预期之前解决一个承诺,使编写Protractor测试更容易。 这实际上是在Protractor依赖的单独项目中完成的jasminewd2 修补 jasmine的expect()以解析promises并包装jasmine的describe() , it()和其他测试控制块函数在Control Flow中执行。 请注意,它还支持断言双方的 promise,您可以这样做,例如: let elementText1 = $('.n ...
  • 如果替换引用直接子文本节点的 text() ,则尝试的XPath可以正常工作. 应该返回上下文节点的整个文本内容 : //div/div/div[@id="headingOne"]/div[contains(., "Sample")]/following-sibling::div 您可能希望在上述XPath之后添加/input[@type="checkbox"]以确保以下同级div存在该复选框。 Your attempted XPath can be working if you replace text ...
  • 如果要访问“ Home链接,只需通过部分链接文本获取 : element(by.partialLinkText('Home')); 或者,您可以使用CSS选择器 : element.all(by.css('ul.primary_menu > li > a')).first(); If you want to access the Home link, simply get it by partial link text: element(by.partialLinkText('Home')); Or, ...
  • browser.wait()的第一个参数实际上是一个等待的条件。 所以你的测试很快就会退出,因为第一个参数不是条件。 此外,您的测试缺乏expect 。 我更改了您的代码,以便测试等待10秒,以便#displayNameInHome元素出现,然后执行断言。 it('Testing display name in profile for logged in user:', function() { element(by.model('loginUI.email')).clear().sendKeys( ...
  • 你在正确的轨道上。 因为findElements返回一个数组,所以你只需要改变if (result.length>0) if (result)含义。 使用FindElements,找不到任何东西都不是错误。 You were very much on the right track. Because findElements returns an array, you just needed to change what you had if (result) to if (result.length>0) ...
  • 我相信潜在的问题是我在调用getText时导航了。 下面的代码块完成了我需要的东西 LocationsPage.prototype.goTo = function(name) { var locations = element.all(by.repeater('l in location')); expect(locations.count()).toNotBe(0); return locations.map( function(locationEleme ...
  • 这对于异步代码来说并不是那么冗长...特别是如果你考虑到你可以直接将函数innerCheck传递给一个promise: // this unbelievably complex block of code gets the id of the // field argument. If string was passed, the fieldid is just that . if (typeof field === 'string') { innerCheck(field); } else { ...
  • 你缺少的东西, 使用此关键字将您的变量绑定到pageObject.page.js中的对象 var PageObject = function() { this.loginUsername = element(by.id('loginusername')); ...... }; module.exports = PageObject; 在Spec中首先获得真正的应用并做实际工作 it('type something in the usernamefield', ...
  • 从本质上讲, element()是一个'elementFinder',它不会做任何工作,除非你调用像getAttribute()这样的动作。 因此,您可以将element(by.id('service'))视为占位符。 当你想要实际找到元素并做一些动作时,你就像element(by.id('service')).getAttribute('value')一样element(by.id('service')).getAttribute('value') ,但这本身并不是你正在寻找的值因为,这是一个获得价值的承 ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)