Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get rid of the MSB3247 (assembly version conflict) warning in an MVC3 app?
    text
    copied!<p>I have an MVC3 app which depends on the DotNetOpenAuth lib, which references MVC1. When I installed the DotNetOpenAuth NuGet package it added an assembly binding redirect to my web.config. I uncommented it, but nothing changed.</p> <p>After some searching I found that the reason for this is usually a typo, however I doubt this applies to me, I checked the config at least a dozen times for typos.</p> <p>I stripped down my web.config to the following:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;runtime&gt; &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt; &lt;bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&gt; &lt;/configuration&gt; </code></pre> <p>During build I get the following warning:</p> <pre><code>Consider app.config remapping of assembly "System.Web.Mvc, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "1.0.0.0" [] to Version "3.0.0.0" [C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll] to solve conflict and get rid of warning. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. </code></pre> <p>I have tried a lot of different combinations (eg. adding the culture="neutral" attribute) in my web.config with no luck, and I've run out of ideas. Any suggestions?</p> <p><strong>Update</strong> My ~/Views/web.config is <a href="http://pastebin.com/4SCTzAiT" rel="nofollow">here</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload