Archived Forum Post

Index of archived forum posts

Question:

Attempt to load an unverifiable executable with fixups

Oct 05 '15 at 09:27

I am seeing the following error while trying your SSH library in my C# WPF application:

{"Could not load file or assembly 'ChilkatDotNet45, Version=9.5.0.52, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)":"ChilkatDotNet45, Version=9.5.0.52, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd"}

I am using VisualStudio 2013 an 32-bit ChilkatDotNet45.


Answer

I tested the same but did not experience a problem.

Here are my exact steps:

  1. Start Visual Studio 2013, create a new C# WPF Application project. (All defaults)
  2. The build configuration is left at the default of Debug/Any CPU. I check the project properties. It is set to "Any CPU" with the "Prefer 32-bit" checkbox checked -- meaning it will run as a 32-bit process on all machines. Therefore, the 32-bit Chilkat assembly is what would be required.
  3. Right-click on "References" and "Add a Reference". Browse to the Chilkat .NET 32-bit assembly DLL and select it. (This is the assembly downloaded from this URL: http://www.chilkatsoft.com/download/9.5.0.52/ChilkatDotNet45-vs2013-9.5.0-win32.zip )
  4. Add the following line to the program. This will cause the Chilkat assembly to be loaded when the WPF app is run.
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Chilkat.Asn asn = new Chilkat.Asn();

}
    }

"warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ChilkatDotNet45, Version=9.5.0.53, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project."