Home > front end >  Debugging ASP.NET Core in release mode
Debugging ASP.NET Core in release mode

Time:02-11

I have built an API with ASP.NET Core 5, when I publish it from my laptop (localhost), I am getting a good response but when I move the project to Windows Server 2019, I can't get a good response anymore (response is null).

I have tried with Postman to understand the issue, from localhost I can get good response but from the server it's always null (but Postman returns 200 as code response).

What I want is to debug the app from the server, please how can I achieve that?

CodePudding user response:

You can't debug your web app with release mode.

From your description, I think you should double check the connection string in your appsetting.json or web.config file.


Suggestion

  1. enter image description here

  2. Remote debug your web app.

  • Related