小编Kar*_* VK的帖子

找不到模块:错误:无法解析'./$$_gendir/app/app.module.ngfactory'

升级我的angular-cli后,我得到以下错误

ERROR in Template parse errors:
Can't bind to 'index' since it isn't a known property of 'tag'. ("own)="handleKeydown($event, item)"
             (onTagEdited)="onTagEdited.emit(item)"
             [ERROR ->][index]="i"
             [attr.tabindex]="readonly ? -1 : 0"
             [class.readonly]="readonly""): TagInputComponent@16:13

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\xxxx\yyyy\eeeee\eeee\src'
 @ ./src/main.ts 5:0-74
 @ multi ./src/main.ts
Run Code Online (Sandbox Code Playgroud)

当我运行ng build --prod并且在ng build没有任何参数的情况下运行时工作正常时会发生此错误,

angular-cli angular

27
推荐指数
4
解决办法
3万
查看次数

Azure功能计时器通过应用程序设置配置

我正在开发Azure函数计时器Job,我需要从appsettings获取cron表达式.请告诉我,如何从Azure功能中的appsettings中获取价值.我希望每隔30分钟从上午9:00到下午12:00运行我的天蓝色功能

{
 "disabled": false,
 "bindings": [
   {
     "name": "timerInfo",
     "type": "timerTrigger",
     "direction": "in",
     "schedule": "0 * * * * *"
   }
 ]
}
Run Code Online (Sandbox Code Playgroud)

azure azure-functions

18
推荐指数
4
解决办法
5013
查看次数

有一个新的项目,但当服务我得到错误

我需要改变这个话题,我不能发表新主题.我已更新脚本,并安装新包.我仍然得到错误,但不是我最后发布的那个.

                             _                           _  _
  __ _  _ __    __ _  _   _ | |  __ _  _ __         ___ | |(_)
 / _` || '_ \  / _` || | | || | / _` || '__|_____  / __|| || |
| (_| || | | || (_| || |_| || || (_| || |  |_____|| (__ | || |
 \__,_||_| |_| \__, | \__,_||_| \__,_||_|          \___||_||_|
               |___/
angular-cli: 1.0.0-beta.26
node: 8.12.0
os: linux x64
@angular/animations: 6.1.9
@angular/cdk: 6.4.7
@angular/common: …
Run Code Online (Sandbox Code Playgroud)

node-modules webpack angular-cli angular

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

无法在 docker 中安装 pyodbc 并获取错误命令“gcc”失败,退出状态为 1

我正在尝试在 linux 容器内运行的 docker 中安装 pyodbc 但出现以下错误

单击此处查看图像

 src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
   #include <sql.h>
            ^~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyodbc
Run Code Online (Sandbox Code Playgroud)

这是我的 dockerfile

FROM mcr.microsoft.com/azure-functions/python:2.0
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true
COPY . /home/site/wwwroot
FROM ubuntu
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
    apt-get -y install gcc mono-mcs && \
    rm -rf /var/lib/apt/lists/*
FROM  python
RUN apt-get update && apt-get install -y python3-pip
# RUN …
Run Code Online (Sandbox Code Playgroud)

azure python-3.x docker docker-build azure-functions

12
推荐指数
3
解决办法
6892
查看次数

Active Directory集成问题Nodejs

我是Node js的新手,我想使用Azure Active Directory进行身份验证.我在这里提到了下载的节点和已安装的NPM

npm install express
npm install ejs
npm install ejs-locals
npm install restify
npm install mongoose
npm install bunyan
npm install assert-plus
npm install passport
npm install passport-azure-ad
Run Code Online (Sandbox Code Playgroud)

之后根据文档,我按照步骤3:设置您的应用程序以使用passport-node-js策略

这是config.js

exports.creds = {
    returnURL: 'https://hpe.onmicrosoft.com/8d332647-xxxx-4xxc-8xx-11776XXXXX',
    identityMetadata: 'https://login.microsoftonline.com', // For using Microsoft you should never need to change this.
    clientID: '22XXXX9-b5fa-XXXXb-bc7a-XXXXXXXa92a',
    clientSecret: 'Srekv8dM1NqP4Sqnxxxxxxxxxxxx', // if you are doing code or id_token code
    skipUserProfile: true, // for AzureAD should be set to true.
    responseType: 'id_token …
Run Code Online (Sandbox Code Playgroud)

javascript azure node.js azure-active-directory

6
推荐指数
1
解决办法
757
查看次数

CosmosDB:查询 CosmosDB 时的 Linq 与 SqlQuerySpec 性能

我在查询 CosmosDB 特定文档时定期执行 LINQ 谓词。然而,今天我的 CosmosDB 中填满了 10 万多个文档。表演非常缓慢。由于 Azure 门户中的 SQL 查询明显更快,因此我尝试使用 SqlQuerySpec。瞧\xc3\xa1!它的工作速度快得多。

\n\n

谁能告诉我在 CosmosDB 中使用 Linq 谓词时到底发生了什么以及为什么它会减慢我的查询速度?

\n\n

下面的代码在我的获取文档的方法中使用。\n注意:在本例中,id 是分区键。

\n\n
        var collectionUri = UriFactory.CreateDocumentCollectionUri(CDBdatabase, CDBcollection);\n\n        var sqlStatement = new SqlQuerySpec\n        {\n            QueryText = "SELECT * FROM c where c.id = @id",\n            Parameters = new SqlParameterCollection()\n                {\n                          new SqlParameter("@id", consumerId),\n                },\n        };\n\n        IDocumentQuery<T> query = documentClient.CreateDocumentQuery<T>(\n            collectionUri,\n            sqlStatement,\n            .AsDocumentQuery();\n\n        List<ConsumerDetails> results = new List<ConsumerDetails>();\n        while (query.HasMoreResults)\n        {\n            results.AddRange(await query.ExecuteNextAsync<ConsumerDetails>());\n        }\n\n        return results.FirstOrDefault();\n
Run Code Online (Sandbox Code Playgroud)\n\n

相对而言,较慢的代码:

\n\n
        return documentClient.CreateDocumentQuery<ConsumerDetails>(\n …
Run Code Online (Sandbox Code Playgroud)

c# linq azure azure-cosmosdb

6
推荐指数
1
解决办法
1977
查看次数

在命令提示符中无法将“ pvk2pfx.exe”识别为内部或外部命令

用于创建证书运行此命令

pvk2pfx.exe -pvk C:\ myCerts \ ELServer.pvk -spc C:\ myCerts \ ELServer.cer -pfx C:\ myCerts \ ELServer.pfx

命令提示符中出现以下错误

无法将“ pvk2pfx.exe”识别为内部或外部命令,可运行程序或批处理文件。

cmd azure azure-cloud-services

5
推荐指数
2
解决办法
3490
查看次数

如何为 Azure Cosmos DB 确定合适的分区键

我是 Azure Cosmos DB 的新手,但我想对以下内容有一个生动的了解:

  1. 分区键是什么?

目前我的理解还很肤浅 -> 具有相同分区键的项目将转到相同的分区进行存储,这可以在系统变大时更好地进行负载平衡。

  1. 如何决定一个好的分区键?有人可以举个例子吗?

多谢!

azure data-partitioning azure-cosmosdb

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

Azure 存储模拟器无法与 azure 函数 docker run 配合使用

我正在尝试使用 Docker 运行我的计时器触发器 azure 函数示例。它在 Visual Studio 中的调试和发布模式下都运行良好。但是当使用docker时

docker run -d -p 8080:80 testdockercors

应用程序启动并显示以下消息,但我的计时器触发器天蓝色功能未运行。

Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down..
Run Code Online (Sandbox Code Playgroud)

但从 Visual Studio 运行时,计时器触发器工作正常。请找到我的 docker 文件。

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
COPY ["Testdockercors/Testdockercors.csproj", "Testdockercors/"]
RUN dotnet restore "Testdockercors/Testdockercors.csproj"
COPY . .
WORKDIR "/src/Testdockercors"
RUN dotnet build "Testdockercors.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Testdockercors.csproj" -c Release -o /app/publish

FROM base AS …
Run Code Online (Sandbox Code Playgroud)

azure azure-storage-emulator docker azure-functions azure-function-app

4
推荐指数
1
解决办法
2068
查看次数

根据新的 android 要求合并 64 位和 32 位 android APK

我们根据android 链接创建了我的应用程序的 64 位版本。

现在我们得到两个带有 32 位 apk 和 64 位 apk 的文件夹,这很好。

现在我想知道,如何合并这两个 32/64 位 apk。是否可以合并它们,或者我们需要在 Google Play 商店中分别上传 32 位和 64 位 apk?

android adb 32bit-64bit apk google-play

3
推荐指数
1
解决办法
4136
查看次数

无法解析属性“CosmosDBAttribute.ConnectionStringSetting”的值

我使用 Visual Studio 开发了带有 CosmosDB 输出的简单服务总线触发器。Service Bus 和 CosmosDB 的连接字符串在 local.settings.json 中定义。代码在本地完全发挥作用。现在我有 Zip 发布函数(C#)到 Azure。

我收到错误:

Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. 
Microsoft.Azure.WebJobs.Host: Unable to resolve the value for property 
'CosmosDBAttribute.ConnectionStringSetting'. 
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

在此处输入图片说明

c# azure azure-functions

3
推荐指数
1
解决办法
2782
查看次数

asp-fallback-test-property 与 asp-fallback-test 之间的区别

我试图找出 asp-fallback-test-property 和 asp-fallback-test 之间的区别,两者都使用该属性来确定是否回退。它们是相同还是有区别

下面的链接没有回答差异,而且令人困惑。

https://github.com/aspnet/Mvc/issues/1580

javascript asp.net-core

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