azure - Not able to load Microsoft.WindowsAzure.ServiceRuntime, Version=1.8.0.0, ............. Local works fine -


after publishing cloud based application (web role) visual studio, application gives following error on accessing landing page.

could not load file or assembly 'microsoft.windowsazure.serviceruntime, version=1.8.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.

locally same application works fine. have kept reference of microsoft.windowsazure.serviceruntime copy local attribute true in property while publishing site.

i using azuresdk 2.0 , have reference of storage services of version 2.0 in reference folder.

i have following in web.config file.

still getting above error. please suggest how solve issue.

expand references section in visual studio , mark azure dlls copy local = "true" - azure sdk dlls need included in bin directory not gaced.

if fails, add assembly binding redirect web.config...

  <dependentassembly>     <assemblyidentity name="microsoft.windowsazure.serviceruntime"          publickeytoken="31bf3856ad364e35" culture="neutral" />     <bindingredirect oldversion="0.0.0.0-2.0.0.0" newversion="2.0.0.0" />   </dependentassembly> 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -