Failed to load file or assembly "System.Web.Abstractions, Version = 0.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35"

Am I getting an error below any idea? I get this error message only when the controller calls the ValidateForm () method.

Failed to load file or assembly "System.Web.Abstractions, Version = 0.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

+3
source share
2 answers

- 3.5.0.0. , -, . bindingRedirect, CLR .

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="System.Web.Abstractions"
                              publicKeyToken="31bf3856ad364e35"
                              culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0"
                             newVersion="3.5.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>
+7

, , , - 3.5. CTP/Beta/Preview?

0

Source: https://habr.com/ru/post/1733862/


All Articles