IIS中没有找到或无法访问服务器

时间:2017-08-02 14:30:45

标签: sql-server iis connection database-connection

从IIS托管应用程序连接到mssql服务器时遇到了一个主要问题。还是一样的错误:

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.

我可以通过Managment Studio访问此数据库。我还在同一台机器上的桌面测试应用程序中测试了我的连接字符串,并且工作正常。此外,我在另一台服务器(使用旧版本的IIS)上托管了此应用程序的旧版本,并且工作正常。

我没有直接访问数据库或防火墙等。此外,我无法在Visual Studio中调试应用程序。

有什么想法吗?

0 个答案:

没有答案
相关问题