Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 951
DadyFuji Avatar asked Nov 12 '22 23:11

DadyFuji


1 Answers

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)

like image 122
Igorek Avatar answered Nov 14 '22 21:11

Igorek