【问题标题】:Missing Type error on internally hosted Nuget site内部托管的 Nuget 站点上缺少类型错误
【发布时间】:2014-06-09 10:54:23
【问题描述】:

我正在尝试解决本地 Nuget 存储库(在 Azure VM 上)的问题。这是可行的,但最近一直出现以下错误:

The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, 
Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a' registered for extension 
'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded.

检查 GAC,此程序集似乎不存在。此错误是在服务器迁移之后出现的,因此可能是以前的机器上安装了但新机器上没有安装的东西。 Nuget 站点在我的本地开发机器上运行良好。

有谁知道这可能是什么?从 machine.config 中删除对该程序集的引用有什么影响?

【问题讨论】:

    标签: .net azure nuget nuget-server


    【解决方案1】:

    不确定是什么原因造成的,但我删除了 machine.config 中对 ServiceModelSink 的所有引用,现在它可以工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-10
      • 1970-01-01
      • 2012-09-30
      • 1970-01-01
      • 2020-04-01
      • 2020-12-16
      相关资源
      最近更新 更多