Close

Version Conflict

dimitritroncquo
8 years ago
#12912 Quote
Avatar
  • 8
Hi,

We recently purchased the nop ajax filters extension. When I try to open the settings page I get the following error:


Compiler Error Message: CS1705: Assembly 'SevenSpikes.Nop.Plugins.AjaxFilters' with identity 'SevenSpikes.Nop.Plugins.AjaxFilters, Version=3.8.746.22651, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=65535.65535.65535.65535, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I tried a few things like putting the following in my web.config (both in the root and in the administration folder):


<runtime>
....

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3.0" />
      </dependentAssembly>
...
</runtime>


I even replaced the System.Web.Mvc dll in the GAC, but i keep receiving the same error.
hristian.dimov
8 years ago
#12913 Quote
Avatar
  • Moderator
  • 386
dimitritroncquo wrote:
Hi,

We recently purchased the nop ajax filters extension. When I try to open the settings page I get the following error:


Compiler Error Message: CS1705: Assembly 'SevenSpikes.Nop.Plugins.AjaxFilters' with identity 'SevenSpikes.Nop.Plugins.AjaxFilters, Version=3.8.746.22651, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=65535.65535.65535.65535, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I tried a few things like putting the following in my web.config (both in the root and in the administration folder):


<runtime>
....

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3.0" />
      </dependentAssembly>
...
</runtime>


I even replaced the System.Web.Mvc dll in the GAC, but i keep receiving the same error.


Hi,

Not long ago we had a client that had the same problem. Here is the answer:

"Solved:
the web.config of the site had some lines that tells to use Roslyn compiler instead of the compiler for .NET 4.5.1
And for some reason the new compiler is not picking up some of the settings in the web.config and is not loading the assemblies properly."

Could you please check your web.config?

If everything is okay with the web.config file, could you please tell us if you have updated the System.Web.Mvc dll?

Looking forward to your reply!
Regards,
Hristian Dimov
Nop-Templates.com
dimitritroncquo
8 years ago
#12914 Quote
Avatar
  • 8
Hi,

I commented out the following lines in the Web.config:


<system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>


This seemed to do the trick. I can now access the configuration without any problem. Hopefully I didn't break anyhting else with this, but for now everything seems to work fine.

Thank you very much!


Kind regards,

Dimitri