login about faq

I am getting the following error when I compile my project with ChilKat.

Error 1 Could not load file or assembly 'file:///C:/Program Files (x86)/Chilkat Software Inc/Chilkat.NET-v2.0-Framework/ChilkatDotNet2.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 161, position 5. C:SourceChillKat2TestChillKat2TestForm1.resx 161 5 ChillKat2Test

All the searches say this is related to 32/64-bit DLL, but that is not the case here. This error occurs when I add an image to an ImageList and compile. I can do the following...

1.) Create empty project, add ChilKat reference (Compiles successfully) 2.) Add an image list to Form1 (Compiles successfully) 3.) Add an image to the image list (Fails to compile) 4.) Remove the image from the image list (Compiles successfully)

I have confirmed my project is linking to the 32-bit DLL, and that the platform is set to x86, not AnyCPU. I can reproduce this with a brand new empty project.

asked Dec 20 '12 at 12:29

Warstrider's gravatar image

Warstrider
1222

Thank you for the help! I was so stuck on the idea that it was a Chilkat bug that I never tried searching without that as a manditory keyword. The first two links are really talking about the 32/64-bit problem, which this isn't. But the third correctly identified it as a but in the data block of the resx file. Thanks for your help and sorry to have posted in the wront forum!

(Dec 20 '12 at 15:21) Warstrider

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×10
×1

Asked: Dec 20 '12 at 12:29

Seen: 939 times

Last updated: Dec 20 '12 at 15:22

powered by OSQA