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)
-
0
-
0
Hi,
Can you try this?
Remove the
/
prefix:options.SwaggerEndpoint("swagger/v1/swagger.json", "MyProjectName API");
-
0
this is my log file url :
https://drive.google.com/file/d/1nxmuBFy6t49M8sjwPD5QW90iV6V8j-BC/view?usp=sharing
-
0
-
0
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
-
0
So can you please share a steps or something like this how to deploy apb Application on server and Web Server
-
0
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