Я следил за видео microsoft, пытающимся создать одностраничное приложение, и оно не создает или не подключается к моему sql-экземпляру, даже если у меня есть другие приложения, использующие код в первую очередь. Например, строка соединения была ...Почему приложение SPA не создает базу данных?
<add name="DefaultConnection" connectionString="Data Source=Localhost;Initial Catalog=aspnet-MvcApplication2-201265113324;Integrated Security=True" providerName="System.Data.SqlClient" />
Но я получаю сообщение об ошибке говорящее
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)
Его действительно странно, потому что мои другие приложения с ConnectionString ...
<add name="PteDotNetContext" providerName="System.Data.SqlClient" connectionString="Server=Localhost;Database=PteDotNet;Trusted_Connection=true;" />
Works штраф и не будет подключаться без проблем ...