【发布时间】:2020-05-05 17:48:00
【问题描述】:
我正在尝试设置和运行这个 git 项目 - https://github.com/johnph/simple-transaction#WebApi-Endpoints
我已成功清理并重新构建了整个解决方案。我已成功配置以执行 EF Core Code-First 迁移,并且已成功创建数据库,其中包含 2 个表:
- 账户交易
- 帐户摘要
我可以运行打开 http://localhost:60243/swagger/index.html 的 Transaction.WebApi。但是,我无法运行其他 2 个 web api 项目:Gateway.WebApi 或 Identity.WebApi。发生的错误是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.
【问题讨论】:
标签: c# rest asp.net-core asp.net-web-api entity-framework-core