如何在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
最满意答案
这对于异步代码来说并不是那么冗长...特别是如果你考虑到你可以直接将函数
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 ...
-
在量角器中测试承诺(Testing promises in protractor)[2021-12-14]
是的, 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) ...
-
量角器查找和单击元素(Protractor Find and Click Element)[2022-08-19]
我相信潜在的问题是我在调用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 ... -
量角器:获取Element的ID(Protractor: get Element's Id)[2023-11-07]
这对于异步代码来说并不是那么冗长...特别是如果你考虑到你可以直接将函数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', ...
-
量角器元件处理(Protractor element handling)[2023-04-28]
从本质上讲, element()是一个'elementFinder',它不会做任何工作,除非你调用像getAttribute()这样的动作。 因此,您可以将element(by.id('service'))视为占位符。 当你想要实际找到元素并做一些动作时,你就像element(by.id('service')).getAttribute('value')一样element(by.id('service')).getAttribute('value') ,但这本身并不是你正在寻找的值因为,这是一个获得价值的承 ...