简体   繁体   English

Azure平台上使用哪个版本的Azure SDK?

[英]Which version of Azure SDK is used on the Azure Platform?

Hi I'm really new on Azure. 嗨,我是Azure的新手。 I've VS 2012 and Azure SDK 2.1, when I run my web application with the emulator all work fine. 我使用VS 2012和Azure SDK 2.1,当我使用模拟器运行我的Web应用程序时,一切正常。 But when I deploy on azure I have the error message : 但是当我在azure上部署时,我有错误消息:

Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 无法加载文件或程序集“Microsoft.WindowsAzure.ServiceRuntime,Version = 2.1.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35”或其中一个依赖项。 The system cannot find the file specified. 该系统找不到指定的文件。

Is the Windows Azure platform using an older version? Windows Azure平台是否使用旧版本? how can I solve this problem, please. 请问我该如何解决这个问题。

I would venture to say that there are two possibilities (in order of likely-hood): 我冒昧地说有两种可能性(按照可能性的顺序):

1) CopyLocal=True for the ServiceRuntime and it should be false. 1)ServiceRuntime的CopyLocal = True,它应该是false。 ServiceRuntime is already deployed on the Azure machines. ServiceRuntime已部署在Azure计算机上。 You don't want to deploy your own. 您不想部署自己的。

2) Somehow your Cloud service config is configured to use an older version of Azure which is forcing the deployed VM to use SDK 2.0 or lower while your code is expecting v2.1. 2)不知何故,您的云服务配置被配置为使用较旧版本的Azure,这会迫使部署的VM在您的代码期望v2.1时使用SDK 2.0或更低版本。 Make sure that osFamily, osVersion, and schemaVersion all are up to sniff with respect to being on 2.1 (I believe schemaVersion is what defines the proper Azure SDK version) 确保osFamily,osVersion和schemaVersion在2.1上都是嗤之以鼻(我相信schemaVersion是定义适当的Azure SDK版本的东西)

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

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