简体   繁体   中英

Which version of Azure SDK is used on the Azure Platform?

Hi I'm really new on Azure. I've VS 2012 and Azure SDK 2.1, when I run my web application with the emulator all work fine. But when I deploy on azure I have the error message :

Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Is the Windows Azure platform using an older version? 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. ServiceRuntime is already deployed on the Azure machines. 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. 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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