Home All Groups Group Topic Archive Search About

Upgrading a project, "Invalid Image" exception?

Author
19 Oct 2006 3:48 PM
Robinson
Hi,

I just took a deep breath, made a backup and decided to have a go at
converting my 1.1 project to 2.0.  All goes well, apart from 10,000 warning
messages about references being used before they are assigned a value (well,
we all assume "nothing" is default).  Anyway, when I try and run the project
I get an error "BadImageFormatException was unhandled", "The format of the
file 'Foo.exe' is invalid".

I'm assuming 2005 compiles to a .NET 2.0 binary image, so what situations
can I get this error in?  I've tried "cleaning" the assemblies but the lack
of information on why this is happening is not enabling me to make much
progress.

Any ideas?

Thanks


Robin

Author
20 Oct 2006 9:17 PM
Glenn Palomar
Hi Robin,

I responded to your response to me. I fixed my problem and see if it works
for you.

Glenn

Show quoteHide quote
"Robinson" <toomuchspamhaspassed@myinboxtoomuchtoooften.com> wrote in
message news:eh86oi$mv1$1$8302bc10@news.demon.co.uk...
> Hi,
>
> I just took a deep breath, made a backup and decided to have a go at
> converting my 1.1 project to 2.0.  All goes well, apart from 10,000
> warning messages about references being used before they are assigned a
> value (well, we all assume "nothing" is default).  Anyway, when I try and
> run the project I get an error "BadImageFormatException was unhandled",
> "The format of the file 'Foo.exe' is invalid".
>
> I'm assuming 2005 compiles to a .NET 2.0 binary image, so what situations
> can I get this error in?  I've tried "cleaning" the assemblies but the
> lack of information on why this is happening is not enabling me to make
> much progress.
>
> Any ideas?
>
> Thanks
>
>
> Robin
>
>