运行 mstest.exe 时出现异常:Microsoft.VisualStudio.TestTools.Utility.LicenseHelper。如何修复?

发布于 2024-08-21 01:25:41 字数 545 浏览 1 评论 0原文

我最近更新了我们的构建服务器,包括 Visual Studio 2008 的 Service Pack。我曾经能够在命令行上并从 Cruise Control 成功运行 mstest.exe。但是更新后我收到此错误消息:

C:>“c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe”

Microsoft (R) 测试执行命令 直线工具版本9.0.30729.1 版权所有 (c) Microsoft Corporation。 保留所有权利。

类型初始值设定项 'Microsoft.VisualStudio.TestTools.Utility.LicenseHelper' 抛出异常。对于开关语法, 输入“MSTest /帮助”

我是否使用通常在巡航控制中使用的开关并不重要。我仍然遇到同样的异常。

有谁知道我如何才能让它再次工作。对我来说,似乎有东西丢失或损坏,只是无法弄清楚是什么......

I recently updated our build server, including Service Pack for Visual Studio 2008. I used to be able to run mstest.exe on the command line and from Cruise Control successfully. After the update however i get this error message:

C:>"c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe"

Microsoft (R) Test Execution Command
Line Tool Version 9.0.30729.1
Copyright (c) Microsoft Corporation.
All rights reserved.

The type initializer for
'Microsoft.VisualStudio.TestTools.Utility.LicenseHelper'
threw an exception. For switch syntax,
type "MSTest /help"

I doesn't matter if I use the switches i normally use in Cruise Control. I still get the same exception.

Does anyone have any clues of how I can get this working again. To me it seems like something is missing or broken just can't make out what...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寻梦旅人 2024-08-28 01:25:41

我在这台服务器上遇到的问题似乎来自 .net Framework 3.5 的更新/安装损坏。 ..可能还有其他一些损坏的更新。我尝试重新安装它(.net框架)但不起作用。唯一的办法可能是重新安装一切......

It seems like the problems I have had with this server comes from a broken update/installation of .net framework 3.5. ..and possibly some other broken update. I have tried to reinstall it (.net framework) but does not work. The only way may be to reinstall everything...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文