我正在尝试访问JSONFeed,但在从文档中进行更改后,我收到以下错误
"找不到名字'HttpClient'"
我已经查看了几次教程,但我很难找到为什么会出现这个错误.
我执行Http请求的组件.
rooms.parent.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
/.../
})
export class RoomParentComponent implements OnInit {
results: string[];
// Inject HttpClient into your component or service.
constructor(private http: HttpClient) {}
ngOnInit(): void {
// Make the HTTP request:
this.http.get(/.../).subscribe(data => {
this.results = data;
});
}
}
Run Code Online (Sandbox Code Playgroud)
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import {HttpClientModule} from '@angular/common/http';
import { AppComponent } from …Run Code Online (Sandbox Code Playgroud) 我需要一个从 JsonDocument 获取 JSON 字符串的示例。我可以获取属性RootElement.GetProperty("ItemName")然后调用,.GetString()但看不到将根元素作为 JSON 字符串获取的方法?
我最近从 Windows 7 安装了 Windows 10。我现在遇到了找不到 microsoft Common Controlls mscomctl 的问题
我已经用 sysWow64/Regsvr32.exe 注册了“MSCOMCTL.OCX”文件
但是当我重新加载项目时,它仍然找不到参考。
我还向 System32 注册了 .ocx。这是 Windows 10 的问题还是我遗漏了什么?
我目前在 Azure 中创建了测试实验室,当我尝试创建Ubuntu Server 14.04 LTS它时,它一直失败并显示以下错误消息。
创建虚拟机 TestVMUbuntu 时出错
/subscriptions/....../resourceGroups/blockchaineuropetest/providers/Microsoft.Compute/virtualMachines/TestVMUbuntu订阅“xxxxxxx”的位置“northeurope”区域“”中当前没有请求的资源大小 。请尝试其他大小或部署到不同的位置或区域。有关详细信息,请参阅 https://aka.ms/azureskunotavailable。
我与 PowerShell 远程连接,它在可用区域列表中。
PS C:\Users\joshua.duxbury> Get-AzureRmLocation | select DisplayName
DisplayName
-----------
East Asia
Southeast Asia
Central US
East US
East US 2
West US
North Central US
South Central US
North Europe
West Europe
Japan West
Japan East
Brazil South
Australia East
Australia Southeast
South India
Central India
West India
Canada Central
Canada East
UK South
UK West
West Central US
West US 2 …Run Code Online (Sandbox Code Playgroud) 我的CRM版本
Microsoft Dynamics 365 Version 1612 (9.0.0.3172) (DB 9.0.0.3172) online
Run Code Online (Sandbox Code Playgroud)
最近从微软网站(版本8.2.1.1)下载的SDK.
https://www.microsoft.com/en-gb/download/details.aspx?id=50032
问题
我没有收到任何错误消息,它只返回登录屏幕.
当我运行下图所示的命令时出现错误
python manage.py shell <processing.py 66
Run Code Online (Sandbox Code Playgroud)
错误是
usage: manage.py shell [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback] [--no-color]
[--plain] [--no-startup] [-i {ipython,bpython,python}]
[-c COMMAND]
Run Code Online (Sandbox Code Playgroud)
我认为这不是使用 shell 时传递参数的正确方法。我不能直接写
python processing.py
Run Code Online (Sandbox Code Playgroud)
因为我正在使用数据库过滤,所以我必须使用 shell。
这是我的处理.py
import os
import sys
from webapp.models import status
dirname = sys.argv[1]
print(os.getcwd())
sta = status.objects.filter(status_id=66)[0]
sta.status = True
sta.save()
print(sta.status)
Run Code Online (Sandbox Code Playgroud)
提前致谢
测试班
[TestFixture]
public class Class1
{
[Test]
public void testtesttest()
{
Assert.IsTrue(true);
}
}
Run Code Online (Sandbox Code Playgroud)
依赖关系
我按照这里的指示进行操作。
为什么我无法发现我的单元测试?
c# ×2
.net-core ×1
angular ×1
azure ×1
django ×1
dynamics-crm ×1
nunit-3.0 ×1
python ×1
vb6 ×1
windows-10 ×1