This project is read-only.

Could not load file or assembly 'EXIFextractor, Version=

Jan 19, 2009 at 1: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.


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=, 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=, 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 **************
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/Program%20Files%20(x86)/Pix%202%20Gallery%202/Pix2Gallery2.exe
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/

************** 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 section.
The application must also be compiled with debugging

For example:

    < jitDebugging="true" />

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 2: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 4: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.)




Nov 26, 2009 at 3: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!


Apr 2, 2010 at 6:16 PM

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

Thanks there!