小编use*_*402的帖子

Web 部署任务失败。ERROR_USER_UNAUTHORIZED

我正在尝试将我的机器人部署到天蓝色。我已经在天蓝色中创建了它,并下载了源代码。但现在我尝试再次部署它,但标题上出现错误。我的所有凭据都是正确的,因为我之前已经写下来了。这就是错误。

严重性代码 说明 项目文件行抑制状态错误 Web 部署任务失败。(使用 Web 管理服务连接到远程计算机(“dotnetfpbot.scm.azurewebsites.net”),但无法授权。请确保您使用正确的用户名和密码,并且您要连接的站点存在,并且凭据代表有权访问该站点的用户。了解更多信息,请访问:http://go.microsoft.com/fwlink/ ?LinkId=221672#ERROR_USER_UNAUTHORIZED。)确保站点名称、用户名和密码是正确的。如果问题未解决,请联系您的本地或服务器管理员。错误详细信息: 使用 Web 管理服务连接到远程计算机(“dotnetfpbot.scm.azurewebsites.net”),但无法授权。确保您使用正确的用户名和密码、您要连接的站点存在,并且凭据代表有权访问该站点的用户。了解更多信息:http://go.microsoft.com/fwlink/? LinkId=221672#ERROR_USER_UNAUTHORIZED 。远程服务器返回错误:(401) 未经授权。蔚蓝机器人 0

如果我的用户名或密码错误,有办法更改吗?

azure azure-deployment botframework

7
推荐指数
1
解决办法
7412
查看次数

垫表根据条件显示行

我只想在状态==“完成”时在表上显示数据。我尝试做,但我所做的只是删除状态,但它仍然显示该行。这个怎么做?

数据

    { 
        equipmentOrdered: 'laptop', 
        qty: 1,
        status: 'processing', 
    },
    { 
        equipmentOrdered: desktop, 
        qty: 2,
        status: 'done', 
    },
    { 
        equipmentOrdered: 'keyboard', 
        qty: 2,
        status: 'processing', 
    },
Run Code Online (Sandbox Code Playgroud)

桌子

      <ng-container matColumnDef="equipmentOrdered"> 
        <mat-header-cell *matHeaderCellDef mat-sort-header>Equipment Ordered</mat-header-cell>
        <mat-cell *matCellDef="let purchaseOrder">{{purchaseOrder.equipmentOrdered}}</mat-cell>
      </ng-container>

      <ng-container matColumnDef="qty"> 
        <mat-header-cell *matHeaderCellDef mat-sort-header>QTY</mat-header-cell>
        <mat-cell *matCellDef="let purchaseOrder">{{purchaseOrder.qty}}</mat-cell>
      </ng-container>

      //this is just not displaying the status, how to not include whole row?
      <ng-container matColumnDef="status"> 
        <mat-header-cell *matHeaderCellDef mat-sort-header>Status</mat-header-cell>
          <mat-cell *matCellDef="let purchaseOrder">
            <ng-container *ngIf="purchaseOrder.status !='done' ">
            {{purchaseOrder.status}}
          </ng-container>
          </mat-cell>
      </ng-container>


      <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
      <mat-row *matRowDef="let row; …
Run Code Online (Sandbox Code Playgroud)

angular-material angular mat-table angular9

5
推荐指数
1
解决办法
1万
查看次数

从没有正则表达式的字符串中获取一组数字

"abc_d1.txt" should get 0
"abc_d1_2.txt" should get 2
"abc_d1_14.txt" should get 14
"abc_d12_x2_156.txt" should get 156
Run Code Online (Sandbox Code Playgroud)

目前可以使用正则表达式执行此操作

 int Id;
 string pattern = @"(?<=_)\d+(?=\.\w+)|(?<!_\d+)(?=\.\w+)";
 Regex rg = new Regex(pattern);
 var z = rg.Match(fullFileName).Value;
 Id = z == "" ? 0 : Convert.ToInt32(z);
Run Code Online (Sandbox Code Playgroud)

但是如何在没有正则表达式的情况下做到这一点?

c# string substring

2
推荐指数
1
解决办法
61
查看次数