简体   繁体   中英

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

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:

  • AccountTransaction
  • AccountSummary

I could run Transaction.WebApi which opens up http://localhost:60243/swagger/index.html . But, I could not run the other 2 web api projects: Gateway.WebApi or 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:

I could start SimpleBanking.ConsoleApp project. Test data is \\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.

I was able to run this project successfully.

Make sure you run 3 servers Gateway.WebApi, Identity and 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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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