ImageResizer - AzureReader2 with Azure SDK 2.2

Posted by Chris Skardon on Geeks with Blogs See other posts from Geeks with Blogs or by Chris Skardon
Published on Tue, 29 Oct 2013 16:54:33 GMT Indexed on 2013/10/30 15:55 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

Originally posted on: http://geekswithblogs.net/cskardon/archive/2013/10/29/imageresizer---azurereader2-with-azure-sdk-2.2.aspx

So Azure SDK 2.2 came out recently, which means I can open my azure projects in VS 2013 (yay), so I decided to do an upgrade of my MVC4 project to MVC5, I followed this link on how to do the upgrade, and generally things went ok.

I fire up my app, and run into a ‘binding’ issue, that AzureReader2 was trying to use Microsoft.WindowsAzure.Storage, Version=2.1.0.0 but alas, it couldn’t find it.

I am not the only one (see stackoverflow), and one solution is to run ‘Add-BindingRedirect’ from the Package Manager Console, but that didn’t solve the problem for me, as it didn’t pick up on the Azure stuff, so I resorted to adding the redirect manually.

So, in short, to get AzureReader2 to work with Azure SDK 2.2, you need to add the following to your web.config:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

        <!-- Other bindings here! -->

        <dependentAssembly>
            <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
            <bindingRedirect oldVersion="0.0.0.0-2.1.0.3" newVersion="2.1.0.3"/>
        </dependentAssembly>
    </assemblyBinding>

© Geeks with Blogs or respective owner

Related posts about ImageResizer

Related posts about Azure