Menu

#5 Could not load file or assembly 'GifComponents'

open-accepted
5
2009-11-20
2009-11-20
Jaex
No

I created this gif (http://img233.imageshack.us/img233/780/giftest.gif) with GifBuilder project.
But if i try open this gif with GifInspector this happening:
Could not load file or assembly 'GifComponents, Version=0.1.3611.21037, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
http://img25.imageshack.us/img25/2695/ss20091120114518.png
http://img25.imageshack.us/img25/8383/viewdetail2009112011462.png
If i place break point to LoadGif method not reaching there.

Discussion

  • Simon Bridewell

    Simon Bridewell - 2009-11-20

    That's curious. Are you building GifBuilder and GifInspector from source or did you install the .msi?

    If you're building it from source, is GifComponents.dll present in your GifInspector/bin/debug or /release folder (as appropriate)? If you installed the .msi, is GifComponents.dll present in the global assembly cache (%windir%\assembly)? And what is its version number?

     
  • Simon Bridewell

    Simon Bridewell - 2009-11-20
    • labels: --> User interface
    • assigned_to: nobody --> sbridewell
    • status: open --> open-accepted
     
  • Simon Bridewell

    Simon Bridewell - 2009-11-21

    OK, so the dll is present and has a sensible version number, and it looks about the right size (my local copy is 96k although that includes a number of changes which aren't in source control yet).

    Are you able to open the dll using ILDasm? That should tell us whether it's a valid assembly or if the file is corrupt somehow.

    Could you try installing the .msi and see if that gives the same error please?

    Finally, this might be a red herring, but from the screenshots, it looks like you're running Windows Visa whilst I'm using XP. Do you know whether you're using 32 or 64 bit Windows? There's a post about target CPUs and 32-bit/64-bit here: http://laputa.sharpdevelop.net/SharpDevelopNowCreatesProjectsAs32bitByDefault.aspx. I see there's a mixture of "any processor" and "32-bit Intel compatible" in the various projects' target CPU properties, in particular GifComponents and GifBuilder are set to 32-bit but GifInspector is set to any processor. Could you try changing the GifInspector project properties to set the target CPU to 32-bit and rebuilding GifInspector please?

     

Log in to post a comment.

MongoDB Logo MongoDB