我开发,并重新编译开始我的网站CTRL + F5 和了错误:.NET服务器停止工作
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)
怎么能这样即使发生?
我没有改变任何东西。
我开始清空MVC应用程序,并使用CTRL + F5启动它,它工作。我重新启动我的主应用程序,仍然无法正常工作。该死的。
问题是,我没有更改任何连接字符串,任何在mssql服务器,没有重新启动任何东西。我只是像往常一样编译应用程序,它先说了一些有关Antlr3的内容,然后无法连接到服务器..更改了sql express的端口,它开始工作20分钟,并且再次停止工作..不理解。
确保SQL Server启动并运行 –
我的SQL Server配置管理器下检查,并且服务正在运行。我会尝试重新启动计算机。这真是bs。 –
您的数据库是否可以在网络外访问?我想你需要添加SQL服务器到firefall应用程序才能在外面访问它。 – Viji