.netazurevisual-studio-2012azure-web-app-serviceassemblybinding

How can I solve this System.Web.Helpers mismatch on Azure web deploy?


I don't know why I can't seem to figure this out. I'm in a bit of DLL strong-naming hell. Here's what's happening:

It seems that I've got a mismatch between the version of System.Web.Helpers installed on the GAC of whatever's hosting my Azure site and what I'm targeting.

Here's what I've tried:

Also, I have the following assembly binding redirect in the web.config:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
      </dependentAssembly>
      ...
</runtime>

Anyone??


Solution

  • You said you tried copylocal=true, but have you ensured that the assembly is getting deployed to the server?

    A potential issues:

    • .gitignore has a .dll filter

    I would FTP to the server and check to ensure the assembly is actually in the bin directory