【问题标题】:BOT Chat Framework error(404 not found)BOT 聊天框架错误(未找到 404)
【发布时间】:2017-07-25 12:05:15
【问题描述】:

我在我的 IIS 服务器上托管了一个简单的 BOT 聊天,URL 为 http://localhost:3978。但是当我访问http://localhost/3978/api/messages。它抛出错误“HTTP 错误 404.0 - 未找到”。所以当我将这些作为我在模拟器中的终点时,它无法连接并显示相同的消息。请任何人都可以帮助我解决这个问题

【问题讨论】:

  • 除非您提供更多详细信息,否则无法为您提供帮助。当你说你在 IIS 上托管你的机器人时,这是否意味着你只是在 Visual Studio 中做了 F5?
  • “localhost/3978”是拼写错误还是您打算将其设为带有冒号 (:) 的“localhost:3978”?

标签: botframework


【解决方案1】:

您无法连接,因为您需要连接到 http://localhost:3978/api/messages 而不是 http://localhost/3978/api/messages,如果失败并且您正在部署在 IIS 服务器中,请连接到 http://localhost/api/messages

【讨论】:

    【解决方案2】:

    如果您在 IIS 中托管,您希望输入 http://localhost/api/messageshttp://localhost/YourIISAppName/api/messages 在机器人模拟器中。如果您的代码在 Visual Studio 中运行并设置为在 PORT 3879 上运行(您可以在 VS 中更改机器人应用程序的属性),则只能使用 http://localhost:3879/api/messages。此外,请确保 IIS 已配置为接受 POST 请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-02
      相关资源
      最近更新 更多