Currently I switched to a computer and had to install everything again, Visual Studio, and SQL Server Management. But when I start the application I would have to create the tables using migrations for SQL Server with the 'update-database' command. However, when I execute this command, the following error appears:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server / Instance Specified)
Speaking that the base is not found. But my connectionString points exactly to the current database, because I got this connectionString from the Visual Studio connection itself through 'SQL Server Object Explorer'
ConnectionString
<connectionStrings>
<add name="BWSDatabase" connectionString="Data Source=DESKTOP-PTI280V;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=True" providerName="System.Data.SqlClient" />
</connectionStrings>
Does anyone have any idea what I should do? Thanks in advance ...