简体   繁体   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:

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 个表的数据库:

  • AccountTransaction账户交易
  • AccountSummary帐户汇总

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.

相关问题 ASP.NET Core API Swagger - No webpage was found for the web address: https://localhost:44358 - ASP.NET Core API Swagger - No webpage was found for the web address: https://localhost:44358 找不到网址Azurewebsite的网页 - No webpage was found for the web address Azurewebsite "MVC Web API NET CORE 5.0 Google Auth:没有找到该网址的网页:https:\/\/localhost:44307\/signin-google" - MVC Web API NET CORE 5.0 Google Auth: No webpage was found for the web address: https://localhost:44307/signin-google 找不到网址为XXX IIS的网页 - No webpage was found for the web address: XXX IIS 升级到 .net 核心 3.0 后出现错误“没有找到 web 地址的网页:https://localhost:44374/” - after upgrade to .net core 3.0 error“No webpage was found for the web address: https://localhost:44374/” 找不到网页调用Web API函数 - The webpage cannot be found calling Web API Function 尝试下载文件时,找不到该网址的网页 - No webpage was found for the web address when trying to download file ASP.NET Core MVC 找不到网页地址 - ASP.NET Core MVC no webpage was found for web address Web 应用程序项目 […] 被配置为使用 IIS。 找不到 Web 服务器 [...]。 - The Web Application Project […] is configured to use IIS. The Web server […] could not be found. Web API 2中找不到的方法 - Method not found in Web API 2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM