<<<September 2010>>>
 SMTWTFS
36   1234
37567891011
3812131415161718
3919202122232425
402627282930  
41       

Training Poll

What type of training do you expect from Falafel Software?



What Products should Falafel concentrate on for Training?





Results

"Total voters : 3"

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are Falafel Employee's own personal opinions and do not represent Falafel Software view in any way.

All Source Code presented or made available for download is licensed under a:
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

Go Back

System.BadImageFormatException - Using the right installer is a GOOD thing

Like many developers, I have both VS2003 and VS2005 installed on my machine. I had also placed a shortcut to the Visual Studio  command prompt in my programs menu. A couple of days ago, I had the opportunity to write my first Windows service application. I got everything set the way I wanted, and it was time to install. So, I opened up the VS command prompt, and typed in the magic chant "installutil servicename.exe". And fairly promptly got the error "Exception occurred while initializing the installation: System.BadImageFormatException: the format of the file 'servicename.exe' is invalid...".

If you're encountering the same error, make sure that you're using the correct installer. For me, it turned out that I was using the VS2003 installer. As soon as I switched to the installer from VS2005 (using the correct command prompt), everything worked just fine. It took me a while to track this down - perhaps this will save you some time.

  • Facebook
  • Twitter
  • DZone It!
  • Digg It!
  • StumbleUpon
  • Technorati
  • Del.icio.us
  • NewsVine
  • Reddit
  • Blinklist
  • Add diigo bookmark
Post a comment!
  1. Formatting options