0

我有一个运行基本 QnA 对话框实现的 Microsoft Azure Bot。当我从 Azure 运行股票代码时,只插入QnAKnowledgebaseIdQnASubscriptionKey,它会给我以下错误(不再是 - 请参阅EDIT):

Exception: The remote name could not be resolved: ‘westus.api.cognitive.microsoft.com’

除此错误外,Virtual Studio 中还有另一个控制台输出:

iisexpress.exe Warning: 0 : Service url localhost:59706 is not trusted and JwtToken cannot be sent to it.

此问题可能与无法发送 JwtToken - Microsoft Azure Bot - LUIS有关

有没有人有同样的问题并知道解决方案?


编辑

我现在使用代理连接到计算机上的网络。期望不再出现,但现在又出现了一个:

Exception: The remote server returned an error: (404) Not Found.

警告虽然仍然存在。

4

1 回答 1

0

我有这个问题很久了。

将此添加到 web.config 为我修复了它。

  <system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy>
  </system.net>
于 2018-06-05T10:45:54.043 回答