打开 关闭

Error when viewing Web Gateway Project #3462


User avatar
0
mbuthiagrg@gmail.com 创建

When I generate a new project and run it, when viewing the Web Gateway Swagger Document I get the following error:-

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): MicroService Template
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Generate and run a new project without any modifications using abp suite.

2 答案
  • User Avatar
    0
    gterdem 创建
    支持团队 Senior .NET Developer

    In OnApplicationInitialization:

    app.UseCorrelationId();
    app.UseStaticFiles(); //Add this line
    app.UseCors();
    

    I have refunded your question, we'll fix it in the first patch.

  • User Avatar
    0
    mbuthiagrg@gmail.com 创建

    Thank you this has resolved the issue.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11