2012-03-09 110 views
3

我已將odbc數據源配置爲系統DSN。 它本身和Visual Studio工作正常。無法連接到SystemDSN ODBC數據源IIS 7

當我嘗試啓動applicattion的IIS 7下連接上我得到一個錯誤:

ERROR [08001] [Microsoft][SQL Server Native Client 10.0]Named Pipes Provider: Could not open a connection to SQL Server [5].

ERROR [HYT00] [Microsoft][SQL Server Native Client 10.0]Login timeout expired

ERROR [08001] [Microsoft][SQL Server Native Client 10.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

回答

1

IIS應用程序運行作爲不同的用戶 - 這個用戶無權訪問預感到的地方,ODBC使用。

我將ApplicationPool身份更改爲以管理員身份運行 - 這解決了我的問題。這是快速的解決方案。至少這是挖掘的方向。 :)

+0

感謝這個解決方案解決我的問題 – Kaushik 2014-08-08 05:24:29