gpt4 book ai didi

c# - 机器人模拟器调用/访问错误的消息 Controller

转载 作者:太空宇宙 更新时间:2023-11-03 15:01:57 25 4
gpt4 key购买 nike

在我的 VS 解决方案中,有 3 个项目如下:

1) Bot20152) Bot2015_2 (启动项目)3) 数据库

solution

Bot2015_2 是我的启动项目,但每当我尝试通过模拟器测试 Bot2015_2 机器人应用程序时,它都会调用第一个项目的消息 Controller ,即 Bot2015(这就是这里的问题)。它应该访问启动项目的消息 Controller ,即 Bot2015_2。即使我卸载 Bot2015 并测试应用程序,同样的事情仍在发生,它永远不会调用正确的消息 Controller ,即 Bot2015_2。

请帮我解决这个问题!

谢谢。

最佳答案

仔细检查您使用哪个端口与您的模拟器通信。这是模拟器用来与您的 Controller 通信的内容。

To specify a port for a Web application project that uses IIS Express

  1. In Solution Explorer, right-click the name of the application and then select Properties. Click the Web tab.

  2. In the Servers section, under Use Local IIS Web server, in the Project URL box change the port number.

  3. To the right of the Project URL box, click Create Virtual Directory, and then click OK.

  4. In the File menu, click Save Selected Items.

  5. To verify the change, press CTRL+F5 to run the project. The new port number appears in the address bar of the browser.

您可以在此处查看更多信息:MSDN

关于c# - 机器人模拟器调用/访问错误的消息 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45808842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com