当我在visual studio中的包管理器中执行更新数据库时,我收到错误 . 有人能帮我吗 ?

System.Data.SqlClient.SqlException(0x80131904): Build 与SQL Server的连接时发生与网络相关或特定于实例的错误 . 服务器未找到或无法访问 . 验证实例名称是否正确,以及SQL Server是否配置为允许远程连接 . (提供者:SQL网络接口,错误:26 - 查找指定服务器/实例的错误)atSystem.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity,SqlConnectionString connectionOptions,SqlCredential credential,Object providerInfo,String newPassword,SecureString newSecurePassword,Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions,SessionData reconnectSessionData,池类DBConnectionPool,字符串的accessToken,布尔applyTransientFaultHandling,SqlAuthenticationProviderManager sqlAuthProviderManager)在System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,对象poolGroupProviderInfo,池类DBConnectionPool,的DbConnection owningConnection,DbConnectionOptions USEROPTIONS)ClientConnectionId:00000000 -0000-0000-0000-000000000000错误号:-1,状态:0,类:20 Build 与SQL Server的连接时发生与网络相关或特定于实例的错误 . 服务器未找到或无法访问 . 验证实例名称是否正确,以及SQL Server是否配置为允许远程连接 . (提供程序:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)

您可以在下面找到 web.config 中的连接字符串:

<connectionStrings>
    <add name="StadsAppServicesContext" 
         connectionString="Data Source=(localdb)\MSSQLLocalDB; Initial Catalog=StadsAppServicesContext-20181027170930; Integrated Security=True; MultipleActiveResultSets=True; AttachDbFilename=|DataDirectory|StadsAppServicesContext-20181027170930.mdf"
         providerName="System.Data.SqlClient" />
</connectionStrings>