我有一个SQL Server存储过程试图从IMAP服务器读取电子邮件(我使用来自www.limilabs.com的mail.dll)。 SP在我的本地计算机/数据库上工作正常,从远程服务器上的控制台应用程序运行时,代码也运行正常。当我尝试从SQL Server运行它但是我收到一条Winsock错误消息:
Msg 6522, Level 16, State 1, Procedure GetEmails, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "GetEmails":
Limilabs.Client.ServerException: The requested name is valid, but no data of the requested type was found ---> System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found
System.Net.Sockets.SocketException:
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
at Limilabs.Client.ClientBase.Connect(String host, Int32 port, Boolean useSSL)
Limilabs.Client.ServerException:
at Limilabs.Client.ClientBase.Connect(String host, Int32 port, Boolean useSSL)
at StoredProcedures.GetEmails()
我怀疑它与权限(??)有关,但它超出了我对SQL Server的了解。 任何人都有一些指示?
由于