Ends in:
5 DAYS
19 HRS
52 MIN
14 SEC
Ends in:
5 D
19 H
52 M
14 S
Open Closed

when deploying to IIS #3002


User avatar
0
malfaqeeh48 created

Failed to load API definition. Fetch errorNot Found /swagger/v1/swagger.json

I'm trying to deploy my application to iis but I changed the hostname i got this problem Even if I'm deploying my application to server not web server I got the same issue so I need help

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

  • ABP Framework version: v5.2.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

7 Answer(s)
  • User Avatar
    0
    malfaqeeh48 created

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try this?

    Remove the / prefix:

    options.SwaggerEndpoint("swagger/v1/swagger.json", "MyProjectName API");

  • User Avatar
    0
    malfaqeeh48 created

    this is my log file url :

    https://drive.google.com/file/d/1nxmuBFy6t49M8sjwPD5QW90iV6V8j-BC/view?usp=sharing

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I didn't see any word about swagger in the log you provided.

    But I see a database problem, seems you are using the wrong connection string:

  • User Avatar
    0
    malfaqeeh48 created

    okay can you tell me where i have to change the connection string its into appsettings module.hostApi and Appsettings. dbmigrator module I have been Changed The Connection string only Inside module.hostApi and before I published the HostApi module , I Unloaded the dbmigrator module

  • User Avatar
    0
    malfaqeeh48 created

    So can you please share a steps or something like this how to deploy apb Application on server and Web Server

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    okay can you tell me where i have to change the connection string its into appsettings module.hostApi and Appsettings. dbmigrator module I have been Changed The Connection string only Inside module.hostApi and before I published the HostApi module , I Unloaded the dbmigrator module

    Simply you need to change all appsettings if it has a connection string.

    So can you please share a steps or something like this how to deploy apb Application on server and Web Server

    Deploying an ABP application is not different than deploying any .NET or ASP.NET Core application. you can check the Azure or other web server documents.

    But there are some things you need to check: https://docs.abp.io/en/commercial/latest/guides/identityserver-deployment

Made with ❤️ on ABP v9.1.0-preview. Updated on November 26, 2024, 12:49