Server.The server was not found or was not accessible.Verify that the instance name is correct and that SQLServer is configured
to allow remote connectionsSee the Windows Application event log for error details.)编辑: Windows应用程序日志错误(这是相同的错误,只是重复
在调试过程中一切正常,但是当我使用“单击一次安装”发布选项发布它时,会出现这个错误。请注意,我使用的是向导,而不是“立即发布”选项,因此清单是正确的。在安装应用程序之前,我还检查了安装.Net Framework4.8和SQLServerExpress Local DB 2012的先决条件,安装过程也很好。我可以看到SQLServer在任务管理器中运行。
SQLServer</e
需要帮助让SQLServer2016 LocalDB接受使用默认实例名称"(localdb)\MSSQLLocalDB“的连接。我可以使用"(localdb).“获取连接。操作系统为64位MS Windows 10专业版。安装了Visual Studio 2015 Express Update 3、SQLServer2016 Local DB (也是2014)、SQLServer