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.
208 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,622 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    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