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
Post a Comment