login about faq

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

{"Could not load file or assembly 'ChilkatDotNet45, Version=, 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=, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd"}

I am using VisualStudio 2013 an 32-bit ChilkatDotNet45.

asked Oct 05 '15 at 09:16

chilkat's gravatar image

chilkat ♦♦

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/ )
  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()
            Chilkat.Asn asn = new Chilkat.Asn();

  • Build the program. There is this warning, which can be ignored:

"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=, 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."

  • The above warning only occurs because your app targets "Any CPU" and the project references a 32-bit DLL. However, the "Prefer 32-bit" checkbox is checked, so the app will always run 32-bit anyway, so there will never be an actual runtime problem.
  • Run the program. The Chilkat DLL is loaded, as can be seen by this debug message:
  • 'WpfApplication1.vshost.exe' (CLR v4.0.30319: WpfApplication1.vshost.exe): Loaded 'C:ckUnitTestWpfApplication1binDebugChilkatDotNet45.dll'. Symbols loaded.

answered Oct 05 '15 at 09:27

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 05 '15 at 09:16

Seen: 2,788 times

Last updated: Oct 05 '15 at 09:27

powered by OSQA