I canβt deploy my azure webrole anymore, it cycles on a bicycle. So I put on Intellitrace and I found this exception:
Exception: Thrown: "The role entry point could not be loaded due to the following exceptions: - System.IO.FileLoadException: could not load the file or assembly" System.Web.Http, Version = 5.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 'or one of its dependencies. The installed assembly manifest definition does not match the Help assembly. (Exception from HRESULT: 0x80131040)
In my project, web.config and the package (Webapi, webhost, etc.) are in 5.2.0.0, so I donβt understand why Azure is trying to find 5.0.0.0 ?!
Example:
<dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" /> </dependentAssembly>
Do you have an idea? Thanks
ps: System.Web.Http received a local copy: true
Raph
source share