Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0

0

I am getting this error:

An exception of type 'System.IO.FileLoadException' occurred in Neodynamic.SDK.WebClientPrint.dll but was not handled in user code
Additional information: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

What I have tried:

  1. downloaded sample project

  2. Run this file: WebClientPrint3WebFormsCS

  3. after adding assemble: neodynamic.sdk.webclientprint.6.0.0 project run successfully but while click on print it gives error:

    An exception of type 'System.IO.FileLoadException' occurred in Neodynamic.SDK.WebClientPrint.dll but was not handled in user code Additional information: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

  4. After adding latest version of System.Text.Encoding.CodePages 5.0.0 then also it will gives same error of Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0

  5. On google I have searched 4.1.2.0, but is not available

  6. I have also tried to uninstall and install assembly file, clean build but also showing the same error

Please help if any one has any solution related this.

fileloadexception
asked on Stack Overflow Mar 12, 2021 by Gourav Tike • edited Mar 16, 2021 by Masoud Keshavarz

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0