I can't deploy my azure webrole anymore, it's cycling indefinitly. So I put on Intellitrace and I found this exception :<blockquote>
Exception:Thrown: "Unable to load the role entry point due to the following exceptions: -- System.IO.FileLoadException: Could not load file or assembly 'System.Web.Http, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</blockquote>
In my project, web.config and package (Webapi, webhost etc.) are all in 126.96.36.199 so I don't understand why Azure try to find 188.8.131.52 ?!
<dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-184.108.40.206" newVersion="220.127.116.11" /> </dependentAssembly>
Do you have any idea ? Thanks
System.Web.Http got copy local:true
That intellitrace output is telling you that WaIISHost.exe is crashing ("Unable to load the role entry point"). But your web.config assembly binding redirect is only affecting the w3wp.exe process. You have a couple options:<ol><li>Check your role entry point (the class that derives from RoleEntryPoint, typically WebRole.cs) to make sure you are referencing System.Web 5.2 DLLs.</li> <li>Create a .config file with your binding redirect for the WaIISHost process. To do this you would create a .dll.config. In a default web role project this would be WebRole1.dll.config.</li> </ol>