我遇到了有关Team Foundation Server的问题,我收到错误"无法从传输连接读取数据:远程主机强行关闭现有连接." 每当我尝试检查一个项目.当我尝试"获取最新版本"时,我也会不时收到此错误.我试图在Visual Studio 2010和Visual Studio 2013中使用TFS,但我遇到了同样的问题.
我也尝试过以下方法:
我在下面列出了此错误的屏幕截图:
有谁知道如何解决这个问题,我将非常感激!
我目前正在使用以下代码:
Public Sub CreateScore()
' open isolated storage, and write the savefile.
Dim fs As IsolatedStorageFileStream = Nothing
Using fs = savegameStorage.CreateFile("Score")
If fs IsNot Nothing Then
' just overwrite the existing info for this example.
Dim bytes As Byte() = System.BitConverter.GetBytes(Scorecount)
fs.Write(bytes, 0, bytes.Length)
End If
End Using
End Sub
Run Code Online (Sandbox Code Playgroud)
然而,使用后的 fs 带有蓝色下划线,并给出错误变量“fs”隐藏变量在封闭块中。
有人知道我该如何解决这个问题吗?