如何克服“无法加载类型“Microsoft.Cct.Services.Sqm.IWatSqmService""不更新? [英] How to overcome "Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService'" without updating?

查看:14
本文介绍了如何克服“无法加载类型“Microsoft.Cct.Services.Sqm.IWatSqmService""不更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到与此问题相同的错误消息:

有趣的是,我可以在模拟器中启动同一个项目,我认为这涉及到打包.

我尝试过的事情:

  1. 确保我只安装了 2.8.2 版的模拟器(我最初可能安装了 2.9)
  2. 重新安装 SDK 2.8.2 版
  3. 手动将 Windows Azure ToolsC:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0 复制到 v14.0 等效.
  4. 确保 C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.8 存在
  5. 重新安装 Visual Studio(所以你知道我很绝望!)

我不知道接下来要尝试什么.我不知道哪个 DLL 应该保存 Microsoft.VisualStudio.WindowsAzure.Services 程序集,我在任何配置文件中都找不到任何引用,而且所有的 Google 搜索结果似乎都指向了到上面链接的 SO 问题.

怎么回事?我该如何解决?

<小时>

如果我是个白痴,这里是我安装的所有与 Azure 相关的东西:

另外(以防万一)我使用的是 Windows 7 SP1.

<小时>

16 年 1 月 17 日更新

根据优秀的

Fusion 日志(设置为记录所有内容)会产生很多这样的条目:

<块引用>

* 程序集绑定器日志条目 (17/01/2017 @ 11:52:02) *

操作成功.绑定结果:hr = 0x0.操作成功完成.

装配管理器加载自:C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll 下运行可执行文件 C:\Program Files (x86)\Microsoft Visual Studio14.0\Common7\IDE\devenv.exe--- 详细的错误日志如下.

=== 预绑定状态信息 === LOG: DisplayName = Microsoft.VisualStudio.WindowsAzure.Services, Version=1.1.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a(完全指定)日志:Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio14.0/Common7/IDE/LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = devenv.exe 调用程序集:Microsoft.VisualStudio.WindowsAzure,版本=2.9.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a.=== 警告:不会在 LoadFrom 上下文中探测本机图像.本机图像只会在默认加载上下文中被探测,就像程序集.加载().警告:未找到匹配的本机图像.日志:IL 组装从 C:\Program Files (x86)\Microsoft Visual Studio 加载14.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\Microsoft.VisualStudio.WindowsAzure.Services.dll.

当我探索提到的 DLL 时,我可以找到 Microsoft.Cct.Services.Sqm,但它不包含类型 IWatSqlService:

感觉这就是问题的症结所在,但我不知道下一步该怎么做.大概我需要用定义了 IWatSqlService 的版本替换 DLL,但我不确定从哪里得到它.或者,就此而言,为什么它甚至是必要的.

下一站可能是彻底擦拭机器.

解决方案

对于遇到此问题的任何其他人.我最终通过从轨道上核爆它来解决这个问题.全新安装 Windows,重新安装 VS 和 SDK.

I'm getting the same error message as in this question: Could not load type 'Microsoft.Cct.Services.Sqm.IWatSqmService' Unfortunately, I cannot upgrade to Azure SDK 2.9, as the top answer there suggests.

Specifically, I get this error in a message box whenever I try to package my Azure Cloud Service project:

What's interesting is that I can start the same project in the emulator, which I would assume involves packaging it.

Things I've tried:

  1. Ensuring that I only have version 2.8.2 of the emulator installed (I may have had 2.9 installed initially)
  2. Reinstalling version 2.8.2 of the SDK
  3. Manually copying the Windows Azure Tools from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0 to the v14.0 equivalent.
  4. Ensuring that C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.8 exists
  5. Reinstalling Visual Studio (so you know I'm desperate!)

And I've no idea what to try next. I can't work out which DLL is supposed to hold the Microsoft.VisualStudio.WindowsAzure.Services assembly, I can't find any references in any config files, and all the Google hits seem to point back to the SO question linked above.

What's going on? And how can I fix it?


In case I'm being an idiot, here's all the Azure-related things I've got installed:

Also (just in case it's relevant) I'm on Windows 7 SP1.


Update 17/01/16

Following some advice from the excellent Rest Azured Slack channel, I've tried using ProcMon and Fusion Log to diagnose this (spoiler: without success)

ProcMon filtered to that assembly returns nothing:

Fusion log (set to log everything) yields lots of entries like this:

* Assembly Binder Log Entry (17/01/2017 @ 11:52:02) *

The operation was successful. Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe --- A detailed error log follows.

=== Pre-bind state information === LOG: DisplayName = Microsoft.VisualStudio.WindowsAzure.Services, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = devenv.exe Calling assembly : Microsoft.VisualStudio.WindowsAzure, Version=2.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load(). WRN: No matching native image found. LOG: IL assembly loaded from C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\Microsoft.VisualStudio.WindowsAzure.Services.dll.

When I explore the DLL mentioned, I can find Microsoft.Cct.Services.Sqm, but it doesn't contain a type IWatSqlService:

This feels like it's the crux of the issue, but I've no idea what to do next. Presumably I'd need to replace the DLL with a version that does define IWatSqlService, but I'm not sure where I'd get one. Or, for that matter, why it would even be necessary.

Next stop is probably a full wipe of the machine.

解决方案

For anyone else with this problem. I ended up resolving this by nuking it from orbit. Fresh install of Windows, reinstall VS and the SDK.

这篇关于如何克服“无法加载类型“Microsoft.Cct.Services.Sqm.IWatSqmService""不更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆