简体   繁体   English

将Azure SDK从2.4升级到2.6后生成错误

[英]Build error after upgrade Azure SDK from 2.4 to 2.6

I just upgraded my web role project (and solution) from Azure SDK 2.4 to Azure SDK 2.6 using the upgrade functionality under project properties > application. 我刚刚使用项目属性>应用程序下的升级功能将Web角色项目(和解决方案)从Azure SDK 2.4升级到Azure SDK 2.6。

When I am building my application, everything works well but when I try to run it (and start up the Azure emulator and such) it gives the following error when I click "NO" if I want to proceeed with build errors: 当我构建应用程序时,一切正常,但是当我尝试运行它(并启动Azure仿真器等)时,如果我要继续进行构建错误,则单击“否”时会出现以下错误:

unable to get setting value Parameter name: profileName 无法获取设置值参数名称:profileName

See build output: 查看构建输出: 建立输出

Nothing more. 而已。 When I open my output I can not find anything related to this. 打开输出时,找不到任何与此相关的信息。 It looks like the build is done successfully. 看起来构建成功完成。

If I click "YES" VS serves a popup with this message: 如果我单击“是”,VS将显示以下消息:

Failed to debug the Microsoft Azure Cloud Service project. 无法调试Microsoft Azure云服务项目。 The output directory "D:\\path\\to\\folder\\src\\project\\csx\\O" does not exist. 输出目录“ D:\\ path \\ to \\ folder \\ src \\ project \\ csx \\ O”不存在。

Maybe it has something to do with the emulator? 也许与模拟器有关?

Can some one help? 可以帮忙吗? Much appreciated! 非常感激!

We also encountered this issue. 我们也遇到了这个问题。

It appears that even if the Service Configuration you've selected in the Run/Debug settings is say, Dev.Local - you need to have a service configuration called ServiceConfiguration.Local.cscfg or you'll encounter this precise error. 即使您在“运行/调试”设置中选择的“服务配置”显示为Dev.Local,您似乎也需要拥有一个名为ServiceConfiguration.Local.cscfg的服务配置,否则您将遇到此精确错误。

At any case, once we created a cscfg called ServiceConfiguration.Local.cscfg this problem ceased, even though we were not referencing it. 无论如何,一旦我们创建了一个名为ServiceConfiguration.Local.cscfg的cscfg,即使我们没有引用它,该问题也会停止。

It's something nasty about diagnostics which the 2.7 upgrade (in my case) attaches everywhere. 2.7升级(在我的情况下)随处都附有诊断信息,这真是令人讨厌。 Remove diagnostics from your roles (web.config, role definitions) and I bet you'll have some luck. 从您的角色(web.config,角色定义)中删除诊断信息,我敢打赌,您会很幸运。

Update: we never got to the bottom of this. 更新:我们从未深入到此。 Unless you are happy without diagnostics, life really is simpler if you just give in and make sure you have a Foo.Local.cscfg! 除非您不进行诊断而感到高兴,否则,只要让步并确保您拥有Foo.Local.cscfg,生活就真的会更简单!

This seems to be a catch-all error. 这似乎是一个包罗万象的错误。 I've just encountered it, and the root cause in my case appears to be that I had the thumbprintAlgorithm for a certificate incorrectly set. 我刚遇到它,而在我看来,根本原因是我为证书设置了thumbprintAlgorithm错误。 I found this out when I tried to Package... it and got a useful error message, so that's one thing to try. 我在尝试打包时发现了这一点……并得到了一条有用的错误消息,因此这是一回事。

检查ServiceConfiguration.Cloud.cscfg中是否存在XML语法错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM