VS 2015 : Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0
<p>I am running a solution which contains different projects. However, i am trying to run a project (class library) which contains wcf services using Visual Studio 2015 and framework 4.6 (on windows 8 OS, IIS Express). However it keeps showing this error in the browser:</p>

<p><strong>Error:</strong></p>

<p><a href="https://i.stack.imgur.com/0C0mo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0C0mo.png" alt="enter imag*e description here"></a></p>

<p>I noticed that the calling assembly of Razor 2.0 is "System.Web.Mvc" Version 4.0.0.1:</p>

<blockquote>
  <p>Calling assembly : System.Web.Mvc, Version=4.0.0.1, Culture=neutral,
  PublicKeyToken=31bf3856ad364e35.</p>
</blockquote>

<p>However, System.Web.MVC dll is not referenced in this project, the references in the project are in the image below:</p>

<p><a href="https://i.stack.imgur.com/VX1qX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VX1qX.png" alt="enter image description here"></a></p>

<p>Although, it is not referenced it always appears in the bin folder, even when i clear it. And may be that's why it is trying to call "<em>System.Web.WebPages.Razor</em>" version 2.0.</p>

<p><strong>Clarifying any clues of the problem:</strong></p>

<ol>
<li>I have no related assembly in the Web.Config that calls System.web.mvc</li>
</ol>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;runtime&gt;
    &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
        &lt;bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /&gt;
      &lt;/dependentAssembly&gt;
     
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /&gt;
        &lt;bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
    &lt;/assemblyBinding&gt;
  &lt;/runtime&gt;</code></pre>
</div>
</div>
</p>

<ol start="2">
<li>also not included in package config:</li>
</ol>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;packages&gt;
  &lt;package id="EntityFramework" version="6.1.3" targetFramework="net46" /&gt;
  &lt;package id="Microsoft.AspNet.Providers" version="2.0.0" targetFramework="net451" /&gt;
  &lt;package id="Microsoft.AspNet.Providers.Core" version="2.0.0" targetFramework="net451" /&gt;
  &lt;package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net46" /&gt;
  &lt;package id="PostSharp" version="4.3.5-alpha" targetFramework="net46" /&gt;
  &lt;package id="System.Web.Providers" version="1.2" targetFramework="net451" /&gt;
&lt;/packages&gt;</code></pre>
</div>
</div>
</p>

<ol start="3">
<li>not included as a reference</li>
</ol>

<p>I am wondering about whats going on? may another project affects it!
Also i have tried to use nugget to update the packages (uninstalled and reinstalled),  but still in the same situation.</p>

<p><strong>A possible reason of the problem:</strong></p>

<p>I also noticed there is a  "<strong>Gobal.asax</strong>" file in this project which uses "<strong>MvcApplication</strong>" class that implements  "<strong>System.Web.HttpApplication</strong>" which may be a good reason of the problem. </p>

<p>Any help is appreciated.</p>