Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The message <strong>An attempt was made to load a program with an incorrect format.</strong>, typically comes from mixing 64/32 bit environments. When you build your .DLL, make sure to select <strong>Any CPU</strong> as the Target CPU int the build settings. That way, the DLL should work no matter if the website is running 32 or 64 bit. But be aware, the message also states <strong>Could not load file or assembly 'CorePoll' or one of its dependencies.</strong>, meaning that if you've referenced other libraries in your DLL, they could be failing to load as well.</p> <p><strong>Edit:</strong> After looking at the <a href="http://msdn.microsoft.com/en-us/library/system.badimageformatexception.aspx" rel="nofollow">documentation</a>, another potential cause of this exception is mixing projects built with different versions of the .Net Framework. Is this possibly causing your error?</p> <blockquote> <p>Components have been created using different versions of the .NET Framework. Typically, this exception occurs when an application or component that was developed using the .NET Framework 1.0 or the .NET Framework 1.1 attempts to load an assembly that was developed using the .NET Framework 2.0 SP1 or later, or when an application that was developed using the .NET Framework 2.0 SP1 or .NET Framework 3.5 attempts to load an assembly that was developed using the .NET Framework 4. The BadImageFormatException may be reported as a compile-time error, or the exception may be thrown at run time. </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload