繁体   English   中英

无法运行 web api(网关)项目 - 找不到此本地主机页面。 未找到该网址的网页:

[英]Unable to run web api (gateway) project - This localhost page can’t be found. No webpage was found for the web address:

我正在尝试设置和运行这个 git 项目 - https://github.com/johnph/simple-transaction#WebApi-Endpoints

我已成功清理并重新构建整个解决方案。 我已成功配置为执行 EF Core Code-First 迁移,并且成功创建了包含 2 个表的数据库:

  • 账户交易
  • 帐户汇总

我可以运行 Transaction.WebApi 它打开http://localhost:60243/swagger/index.html 但是,我无法运行其他 2 个 web api 项目:Gateway.WebApi 或 Identity.WebApi。 发生的错误是This localhost page can't be found. No webpage was found for the web address: This localhost page can't be found. No webpage was found for the web address:

我可以启动 SimpleBanking.ConsoleApp 项目。 测试数据为\\src\\Services\\Identity\\Services\\UserService.cs。 但它返回Object reference not set to an instance of an object. App interrupted. App closed. Object reference not set to an instance of an object. App interrupted. App closed.

我能够成功运行这个项目。

确保您运行 3 个服务器 Gateway.WebApi、Identity 和 Transaction。

只有这样你才能运行控制台应用程序。

在 Console 中即使你输入了错误的用户名或密码,系统仍然会告诉你登录成功,这有误导性。 然后,当您选择以下选项之一时:

你调用的对象是空的。 应用程序中断。 应用程序关闭。

确保监控日志中的错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM