ASP.NET Core 6 Database not connected after publishing

Preshen Govender 1 Reputation point
2022-07-06T11:30:33.313+00:00

The app worked perfectly when I worked with it on Visual studios but after I published it I can't access any of my tables.
The database is stored on azure.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 40,901 Reputation points
    2022-07-06T11:32:21.753+00:00

    The database is stored on azure.

    What for a Azure solution exactly (SQL Azure, VM with SQL Server, Managed Instance) and which error message do you get?


  2. Preshen Govender 1 Reputation point
    2022-07-09T18:17:33.207+00:00

    The issue was the firewall on azure was not set.
    On azure I went and added a rule which allowed 0.0.0.0 to 255.255.255.255 access to the database.

    0 comments No comments