尝试使用的Azure SDK 2.5导致空-REF(对象引用未设置到对象的实例)发布 [英] Trying to publish using Azure SDK 2.5 results in a null-ref (Object reference not set to an instance of an object)

查看:151
本文介绍了尝试使用的Azure SDK 2.5导致空-REF(对象引用未设置到对象的实例)发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的从SDK 2.4升级我们的湛蓝部署项目以SDK 2.5

We upgraded our azure deployment project from SDK 2.4 to SDK 2.5.

该项目有两个辅助角色。

The project has two worker roles.

发布2.4项目用来做工精细云服务,但在升级到2.4,我们看到与发布在微软Azure活动日志窗口下面的输出失败后:

Publishing the 2.4 project to a cloud service used to work fine but after upgrading to 2.4 we see publish failing with the following output in the Microsoft Azure Activity Log Window:

下午4点44分19秒 - 检查远程桌面证书...

4:44:19 PM - Checking for Remote Desktop certificate...

下午4时44分20秒 - 应用扩展诊断

4:44:20 PM - Applying Diagnostics extension.

下午4时44分二十○秒 - 对象引用不设置到对象的实例

应用诊断扩展也是我们曾经在2.4没有看到的东西。

"Applying Diagnostics extension" is also something we used to not see in 2.4.

任何想法是什么原因导致这个的上方的错误?

Any idea what causes this above error?

推荐答案

打开,如果你有哪些diagnsotics启用/禁用角色的混合会发生这种情况。这可以在少数情况下发生的。

Turns out this can happen if you have a mix of roles on which diagnsotics is enabled / disabled. This can happen in a few situations.


  1. 您明确地通过编辑wadcfgx文件禁用一些角色诊断。

  2. 您从UI的一些角色,你得到通过双击明确禁用诊断 - 部署项目>角色> ROLENAME

  3. 您升级的2.4或更早版本的项目2.5。 SDK 2.5中引入的一个新的诊断配置文件(.wadcfgx)。当您升级项目时,Visual Studio将老拿.wadcfg文件,并将其转换成新的.wadcfgx文件。由于一个bug,有时这种转型无法创建/添加新的文件。

解决方法是对所有角色或者禁用诊断或启用它的所有角色。然后,您可以在wadcfgx文件中的配置发挥控制,你需要转移/块的数据。

The workaround is to either disable diagnostics on all roles or enable it on all roles. You can then play with the configuration in the wadcfgx file to control the data that you need to transfer / block.

这篇关于尝试使用的Azure SDK 2.5导致空-REF(对象引用未设置到对象的实例)发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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