none
x86 on x64 : An attempt was made to load a program with an incorrect format

    Question

  • I have VS2010 running on Win7 x64 to do debugging I have to compile in x86.  One of my projects is throwing an error when I switch to x86 mode, in any CPU it works fine but I can't debug correctly, error below.  When I click on the error it shows me one of the files resource (resx) and the data for an image stored there.

    any suggestions on how to fix?

    Error 1 

    Could not load file or assembly 'file:///C:/D-Drive/FRS4/DBChecker/bin/x86/Debug/DBChecker.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 465, position 5. C:\D-Drive\FRS4\FRS4_UI\Login.resx 465 5 FRS4_UI

    data location is last </data>  (note some data clipped for size)

      <data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
        <value>
            AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
            Av8BgAEAAf8B+AIAAQ8B/AEPAeMB/wHgAQABBwL/AeABAwH/AfwCAAEfAf8BHwL/AeABAAEPAv8B+AEP
            Af8B/gIAAX8E/wHmAQABHwL/AfwBHwL/AYABAAX/AfABfwf/AeABBxH/Cw==
    </value>
      </data>


     


    John J. Hughes
    www.functioninternational.com/
    • Moved by Brittany Behrens Tuesday, June 29, 2010 2:21 AM Error on debugging (From:Visual Studio Editor)
    Monday, June 28, 2010 11:10 PM

All replies