windows10
sqlserver数据库和改完虚拟ip的项目已部署到docker容器中,这时候数据库初始化执行命令Update-Database -context AppDbContext报错: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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
报错后我按网上提供的资料修改sql server configuration Manager->sql server 网络配置->SqlExpress->TCP/IP(已启用)->TCP/IP属性中IPALL下TCP端口已经改成1433,最后重启了SQL Server(SQLEXPRESS)服务,最终还是报错,这是为什么呢
. Net Core实战+RESTful思想纵深课程,开发优雅RESTful风格API。
了解课程