Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've been having this problem.</p> <p>I was using MvcContrib version 2.0.95.0 alongside System.Web.Mvc version 4.0.30319.</p> <p>The problem was that MvcContrib references an earlier version of System.Web.Mvc.</p> <p>If you're using an older version of MvcContrib with Mvc 2 it should be sufficient to download and reference the latest version of MvcContrib. If you're using .NET 4 and Mvc 3 you'll need to update the App.Config file for your unit test project (you may have to add one) with the following:-</p> <pre><code>&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-2.0.0.0" newVersion="3.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&gt; .... &lt;/configuration&gt; </code></pre> <p>Bear in mind that you may need to change the version numbers if you're using a different version of MVC. (e.g. at the time of this edit you'd need to use <code>oldVersion="1.0.0.0-5.1.0.0"</code> and <code>newVersion="5.2.0.0"</code>).</p> <p>You may also need to add this to your web project. If you're only getting the exception in your test project, chances are this section already exists and is correct in your web.config; you can copy and paste it from there.</p> <p>If you're using Code Analysis, you'll also need to see <a href="https://stackoverflow.com/questions/4042855/assembly-binding-redirection-and-code-analysys">Assembly Binding Redirection and Code Analysis</a> in order for it to respect the binding redirection.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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