Lỗi Error:26 khi chạy update-database trong ASP.NET
Em có thiết lập trong SQL Server như trong hình
Nhưng khi chạy PM> update-database thì bị báo lỗi ( có vài máy bị, vài cái thì không ạ @@ )
“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)”
Em có <connectString>
cho 2 thằng Web.config và App.config
<connectionStrings>
<clear/>
<add name="QuanShopConnection" providerName="System.Data.SqlClient" connectionString="Data Source=.;Initial Catalog=QuanShop;Integrated Security=False;User Id=minhquan3197;Password=123456;MultipleActiveResultSets=True"/
</connectionStrings>
Em cũng mò thử các kiểu trên google nhưng vẫn không thể fix được lỗi này ạ @@ với thiết lập tương tự thì máy bàn em lại được
Thanks các bác ạ