我已经在sql server 2012中创建了数据库,并将我的visual studio与sql server连接起来。当我在本地服务器上运行它时,它可以很好地工作,我可以很容易地登录和签出,但是当我在web上部署它时,它在con.open()行上显示了这个错误。请帮帮忙。描述:在执行当前web请求时发生了未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及
A network-related or instance-specific error occurred while establishing a connection to SQL Server.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