6

我创建了一个云服务并在本地成功测试。我为舞台和制作添加了服务配置。这是我的暂存配置的片段:

服务配置

这里是我的配置设置:

配置开始页面

然后,当我发布时,我按如下方式设置部署:

发布设置

所有这些都像 2 周前一样有效。但现在他部署在 VS 中,当我查看 Azure 服务配置区域时,它看起来像这样:

发布后在 Azure 中配置区域

我在第二个屏幕上玩了一点“更新开发......” - 复选框,但结果是一样的。

所以它忽略了我所做的所有设置,只是不会将我的配置转换到我命名为“CloudStage”的ine。我当前的 Web PI 告诉我,我使用 Windows Azure SDK for .NET (VS 2013) 2.3。我不明白这一点。

编辑 我观察到的更多事情:

  • 暂存存储中不会自动生成 WADLogsTable 和 WADWindowsEventLogsTable。
  • 我停用了远程桌面,因为这是我为监视事件日志所做的更改之一(在这里没有用)
  • 我手动更改了 Azure 门户中的连接字符串,但似乎工作人员完全不知道存储(重新启动但没有成功)。

编辑

我认出了另一件事。在这里您可以看到我的服务正在运行的部署:

部署开始

看到左边的警告标志了吗?如果我转到我的错误列表,则会显示:

毫无意义的警告

这个警告是毫无意义的,因为它告诉我我所做的一切都是正确的。我的 *.Local.csfg 文件指向本地存储。所以?!?

4

4 回答 4

3

这似乎很奇怪。请检查您的 ServiceConfiguration.CloudStage.cscfg 以验证预期值。您是否尝试过更新任何其他属性,例如启用远程桌面?这是否会在您的部署中得到更新?您应该在发布对话框中选中“部署更新”复选框。现在,当部署到现有的云服务时,它应该会询问您是否要替换它。如果每次右键单击项目时都收到对象引用错误,则可能是 Azure SDK 设置存在问题。

于 2014-06-05T01:08:10.553 回答
0

I'm a little bit further now. What I did was:

  1. Deleted all Services in Azure.
  2. Deleted all Storage Accounts in Azure
  3. Removed my Service-Project completely from solution (not the library containing the worker-logic).
  4. Re-added storage-accounts in Azure.
  5. Re-added services in Azure.
  6. Re-added a project in the solution and added the worker-logic inside it.
  7. Builded up all the publishing-stuff again.
  8. Published it.

The first publish ended like the one described in my question. After I checked the "Update development..."-option in properties of my worker it finally took my transitions into the stage!

Now I recognized, that WADLogsTable was still empty. I hit the instance right in server-explorer and choosse "Update diagnostic settings...". There was an option "Transfer period" suddenly set to "None". This explained to me, why my table was empty and after I set it back to "1" my table is filling again!

Another funny thing beside: When I right-click my Cloud-project in the solution I get "Object reference not set to an instance...". When I just click it left and choose Build->Publish it works.

I just hope that I can help somebody with this. Lets see if it's stable now.

Edit: Yesterday it worked - today is still the same issue :-(.

于 2014-06-01T16:38:03.373 回答
0

So it turns out that the problem is completely on client-side. My Visual Studio (now with SDK 2.4) is doing something wrong. I set up a fresh installation with all the stuff needed :-( and there it works perfect. I'll try to determine if one of my extensions is causing the strange "Object reference not set..."-bug.

Repair-Installation of VS does not solve the problem btw.

于 2014-08-18T12:19:30.810 回答
0

当你得到 " Object reference not set to an instance.." 时,CloudService project你通常会有某种不匹配。可能是 中的设置ServiceConfiguration未在 中定义ServiceDefinition。也可能是文件中定义了不存在的发布配置.ccproj文件。CloudService这也可能是导致您使用不同配置出现问题的原因。

于 2014-06-05T12:21:36.317 回答