Could not load file or assembly 'EXIFextractor, Version=0.9.2.0

Jan 19, 2009 at 12:31 AM
I've just installed Pix 2 Gallery 2 since Gallery Remote was again not working on my Windows Vista 64 bit Business.

I've installed Pix2Gallery2 and logged into my gallery ok, but when I try to upload an image I get the "Unhandled exception". Details below.

thanks
Phil



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException: Could not load file or assembly 'EXIFextractor, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'EXIFextractor, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null'
   at Pix2Gallery2.ImageHandler.ResizePicture_ConstantAspectRatio(String filePath, Int32 maxWidth, Int32 maxHeight)
   at Pix2Gallery2.UploadForm.ResizePicture(String filePath, Int32 sizeIndex)
   at Pix2Gallery2.UploadForm.ThreadedUploadCheckedFiles()
   at Pix2Gallery2.UploadForm.buttonUpload_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Pix2Gallery2
    Assembly Version: 0.9.6.0
    Win32 Version: 0.9.6.0
    CodeBase: file:///C:/Program%20Files%20(x86)/Pix%202%20Gallery%202/Pix2Gallery2.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
7sgqw_td
    Assembly Version: 0.9.6.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Jan 19, 2009 at 1:28 AM
The error message only appears when I am resizing the images using Pix2Gallery2.

All images work ok if I upload them at original size, but so far every image I've tried fails with the above error if I try to resize them on upload.
May 22, 2009 at 3:09 PM

Saddly, I'm getting the same error message.  However, uploading them without a resize doesn't work for me as an alternative.

I used this glorious program for awhile now, and it's made uploading photos to my site a breeze, but now I'm lost without it!  After my harddrive crashed last week, I'm running Windows7 64bit RC1... thinking that it should run fine since you've designed it for Vista 64... but so far no luck.  I get the popup dialogue error message when I try to resize on upload, but no error when I upload at original size (but it does tell me that it fails as a status bar message, so my guess is it's my web server's limitations at that point.)

help?

thanks,

Joel

Nov 26, 2009 at 2:01 PM

Go here and replace your EXFIExtractor.dll in the program's folder with the one from the demo project. Just found this program and this fixed it for me!

 

http://www.codeproject.com/KB/graphics/exifextractor.aspx

 

Apr 2, 2010 at 5:16 PM

Had the same problem, dakahlers fix worked like a charm,

Thanks there!