昨天在客户那里,遇到一个奇怪的问题。程序直接运行的时候,可以正常连接SQL SERVER; 但是使用Web Service连接SQL SERVER的时候,出现了下面的错误信息:

Connection Timeout Expired.  The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement.  This could be because the pre-login handshake failed or the server was unable to respond back in time.  The duration spent while attempting to connect to this server was - [Pre-Login] initialization=4683; handshake=3499; (InnerException:The wait operation timed out)

程序可以运行,说明SQL SERVER是正常的。当我关闭firewall以后,这个问题仍然存在,所以应该不是firewall阻止了访问。

设置的SQL SERVER的host为127.0.0.1, 后来修改为.  Web Service就能够正常连接了。

最新文章

  1. Android中TextView setText int 报错
  2. HTML5网页打开摄像头,并拍照
  3. CORBA IOR学习
  4. nvm
  5. iOS7 中的新加入的下载类NSURLSession(随ios版本更新而更新)
  6. Redstone 云观象台 服务器部署 - Nginx配置文件
  7. 继承UIView的子控件添加点击事件
  8. javascript language
  9. Mongodb 监测
  10. Array方面Js底层代码学习记录
  11. Js 浅克隆详解
  12. BBS论坛(十四)
  13. 构建工具build tools
  14. <操作系统>进程和线程
  15. Xpath做数据解析
  16. mac系统下安装Composer和laravel
  17. django添加装饰器
  18. JVM技术周报第1期
  19. 如何设置Eclipse使用JDK
  20. cocos2d-x 键盘和鼠标事件

热门文章

  1. angular 引入服务报错global is not defined----angular11引入service报错Can't resolve '@core/net/aa/aa.service' in 'D:\pro'
  2. 电脑本地安装不同版本MySQL
  3. freeswitch号码黑名单
  4. day01-SpringMVC基本介绍-01
  5. 结对项目总结 -- 基于Qt开发的win10桌面应用
  6. DaemonSet方式部署nginx-ingress
  7. Mybatis数据库批量操作
  8. Jenkins CLI命令行
  9. 《Terraform 101 从入门到实践》 Terraform在公有云GCP上的应用
  10. 软赢软件控制器在Zstack云主机实现电机控制的方法