[英]Unable to run web api (gateway) project - This localhost page can’t be found. No webpage was found for the web address:
I am trying to setup and run this git project - https://github.com/johnph/simple-transaction#WebApi-Endpoints我正在尝试设置和运行这个 git 项目 - https://github.com/johnph/simple-transaction#WebApi-Endpoints
I have successfully clean up and re-build the whole solution.我已成功清理并重新构建整个解决方案。 I have successfully configure to perform EF Core Code-First migration and database was successfully created with 2 tables in it:我已成功配置为执行 EF Core Code-First 迁移,并且成功创建了包含 2 个表的数据库:
I could run Transaction.WebApi which opens up http://localhost:60243/swagger/index.html .我可以运行 Transaction.WebApi 它打开http://localhost:60243/swagger/index.html 。 But, I could not run the other 2 web api projects: Gateway.WebApi or Identity.WebApi.但是,我无法运行其他 2 个 web api 项目:Gateway.WebApi 或 Identity.WebApi。 The error occured is 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:
This localhost page can't be found. No webpage was found for the web address:
I could start SimpleBanking.ConsoleApp project.我可以启动 SimpleBanking.ConsoleApp 项目。 Test data is \\src\\Services\\Identity\\Services\\UserService.cs.测试数据为\\src\\Services\\Identity\\Services\\UserService.cs。 But it returns 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.
Object reference not set to an instance of an object. App interrupted. App closed.
I was able to run this project successfully.我能够成功运行这个项目。
Make sure you run 3 servers Gateway.WebApi, Identity and Transaction.确保您运行 3 个服务器 Gateway.WebApi、Identity 和 Transaction。
Only then you can run Console app.只有这样你才能运行控制台应用程序。
In the Console even if you put the incorrect username or password the system still telling you it Login successfully, which misleading.在 Console 中即使你输入了错误的用户名或密码,系统仍然会告诉你登录成功,这有误导性。 Then when you choose one of the options you get:然后,当您选择以下选项之一时:
Object reference not set to an instance of an object.你调用的对象是空的。 App interrupted.应用程序中断。 App closed.应用程序关闭。
Make sure to monitor the log for errors确保监控日志中的错误
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.