在 Visual Studio 2012 年尝试登录 Team Foundation Server 时出现脚本错误

Script Error when trying to login Team Foundation Server in Visual Studio 2012

我有 Visual Studio Ultimate 2012,除一个问题外工作正常。每当我尝试通过登录向导连接到 Team Foundation Server 时,我都会在标题为:"Script Error" 的弹出窗口中收到一个错误,好像它无法呈现结果或其他内容。这里有关于这个主题的更多信息

Line: 4
Char: 16405
Error: Object doesn't support this property or method
code: 0
URL: https://....../TFS/Loader.min.js

有什么建议吗? (我试过 re-installing 但出现同样的问题)

是的!!!!我找到了 sol'n

使用控制面板卸载 IE。 重新安装并使用推荐设置将 IE 作为默认浏览器。

你完成了。

为我的案子工作

由于我使用的是 Windows Server 2008,我找不到重新安装 IE 的方法(只能 enable/disable 它),所以 solution didn't work for me. But there is other workaround I found. When you try to connect to tfs server and the browser window "Sign in to TFS" inside Visual Studio opens with javascript error and then nothing happens, right click on the window and select "Properties" find Addres (URL) and copy full path (https://app.vssps.visualstudio.com/_signin?realm=..。)将此粘贴到 Internet Expolorer(不适用于其他浏览器)并登录到 tfs,您将被重定向到某些 tfs 网络服务。在此之后切换回 Visual Studio 并尝试再次连接到 tfs。这次您应该无需登录即可连接。

我只需要将 IE 设置为我的默认浏览器,它就为我解决了这个问题。

我遇到了同样的问题。我一般使用Chrome,安装的MSIE版本是IE 8。当我更新到IE 11时,问题就解决了。

更新到 IE 11,一切正常。

更新 IE 不适合我。我需要它在这台机器上进行测试。就我而言,以下帮助了我:

我打开了IE8的开发者工具(按F12)。它处于 'IE8 Compat View' 模式。我切换到 'IE8' 模式并将文档模式指定为 'IE8 Standards'.

然后我就可以通过IE8登录TFS了。使用浏览器登录后,我重新启动 Visual Studio 并且一切正常。