[英]Could not load file or assembly 'Microsoft.VisualStudio.TeamSystem.Licensing, After opening ASP.Net MVC project with visual studio 2015
I have an ASP.net MVC project which uses meth to compose its parts. 我有一个ASP.net MVC项目,它使用meth来组成它的部分。 Everything was working fine until I opened the project with Visual Studio 2015. Then I received this error...
一切都工作正常,直到我用Visual Studio 2015打开项目。然后我收到此错误...
Could not load file or assembly 'Microsoft.VisualStudio.TeamSystem.Licensing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 无法加载文件或程序集“Microsoft.VisualStudio.TeamSystem.Licensing,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”或其中一个依赖项。 The system cannot find the file specified.
该系统找不到指定的文件。
I closed the project and opened back up in Visual Studio 2013 and tried to run. 我关闭了项目并在Visual Studio 2013中重新打开并尝试运行。 However now I received the same error in 2013, where it used to work before opening in 2015. Does anyone know the cause of this error and how to correct the problem??
但是现在我在2013年收到了同样的错误,它曾经在2015年开业前工作。有谁知道这个错误的原因以及如何纠正问题?
I still am not sure why opening the project with Visual Studio 2015 caused this problem. 我仍然不确定为什么用Visual Studio 2015打开项目会导致这个问题。 I can only assume that opening in 2015 added code somewhere that referred to the Microsoft.VisualStudio.TeamSystem.Licensing.DLL library.
我只能假设在2015年开放时添加了一些引用Microsoft.VisualStudio.TeamSystem.Licensing.DLL库的代码。
Cause notwithstanding, to fix, I added Microsoft.VisualStudio.TeamSystem.Licensing.DLL to the project references. 尽管如此,为了解决这个问题,我将Microsoft.VisualStudio.TeamSystem.Licensing.DLL添加到项目引用中。 Once I did that, everything worked fine again.
一旦我这样做,一切都恢复正常。 Hope this helps someone else.
希望这有助于其他人。
I had a similar problem occur in VS2013 today, and I finally solved it in exactly the same fashion, by adding a reference to 'Microsoft.VisualStudio.TeamSystem.Licensing'. 我今天在VS2013中遇到了类似的问题,我最终通过添加对'Microsoft.VisualStudio.TeamSystem.Licensing'的引用以完全相同的方式解决了它。 In my case this occurred when switching project references from embedded interops to using the PIA assemblies directly.
在我的情况下,这是在将项目引用从嵌入式interop切换到直接使用PIA程序集时发生的。 I could not find a setting that controlled this, but fuslogvw left no question as to the culprit.
我找不到控制它的设置,但fuslogvw对罪魁祸首毫无疑问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.