Publishing .net core API from visual studio

rmllbrathnayaka@gmail.com 1 Reputation point
2021-10-15T20:06:35.183+00:00

140928-image.png

I am getting this error when trying to publish my .net core API project from visual studio. I tried to clear nuget cache and re-run but no change.

140907-image.png

If I tick off this 2 in the publishing wizard the db get configured properly. But I cant see any migrations or anything happens. Basically, an empty DB without any connection with the API. and requests return Status 500 internal server issue.

Azure SQL Database
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
268 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2021-10-19T21:03:10.603+00:00

    Removing the nuget option fixed another community member's issue @rmllbrathnayaka@gmail.com . I would also suggest upgrading to the latest version Visual Studio to see if that resolves the issue. If not, report it as a problem.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.