我正在尝试让我的SQL 2008客户端工具与TFS 2010交谈.
地址http:// tfs-server:8080/tfs在VS2010中运行正常,但SSMS(SQL Server Management Studio 2008)和BIDS(Business Intelligence Development Studio 2008)都给我这个错误:
TF31002: Unable to connect to this Team Foundation Server: <snip>
Possible reasons for failure include:
- The Team Foundation Server name, port number or protocol is incorrect.
- The Team Foundation Server is offline.
- Password is expired or incorrect.
Run Code Online (Sandbox Code Playgroud)
所以这告诉我,我应该在我的代码末尾放置一个GC.KeepAlive以保持我的互斥锁打开(以防止我的应用程序的多个实例由于早期GC处理我的互斥锁而发生).但是我应该将KeepAlive放在我的finally块中还是在try块的末尾?