Imagelist causes TargetInvocationException at runtime

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello.

I am desinging a Windows forms application with C#. I have added an
imagelist control to the form and added a bitmap. Now, whenever I run the
application I get the following error.

"An unhandled exception of type
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll

Additional information: Exception has been thrown by the target of an
invocation."

I have been able to use these before without issue. I recently installed
Visual Assist but I cannot imagine that that is the issue. Any thoughts?

System Specs
P4 3.2 Ghz.
512 MB RAM
Windows XP Professional SP2
Visual Studio 2003
..NET Framwork 1.1 SP1

Thanks in advance.


.



Relevant Pages

  • Re: Slow booting xp home.
    ... Changing the boot order to boot first from your hard disk might save you a half second, but you won't be able to boot from a CD until you change it back - and the time spent to do that will erase any previous time saved. ... 2- Consider what software you really want to start with Windows and also how you've configured your applications at startup ... Installing and Registering Visual Studio Express Editions Smart Device ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Slow booting xp home.
    ... What is a normal sort of boot time for an older machine? ... 30s to the windows screen? ... Installing and Registering Visual Studio Express Editions Smart Device ... Microsoft Robotics - Hardware Configuration and Troubleshooting Data ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Slow booting xp home.
    ... I assume Microsoft Fax is not working. ... The LexBce Server service terminated unexpectedly. ... Windows is loading will come on and then the desktop, ... Visual Studio Source Control and SourceSafe -» ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Slow booting xp home.
    ... 30s to the windows screen? ... A lot of it involves changing registry values or bios settings. ... Installing and Registering Visual Studio Express Editions Smart Device ... Microsoft Robotics - Hardware Configuration and Troubleshooting Data ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Difference between VC++ and UNIX
    ... It uses whatever compiler you have, in whatever language you like. ... like edit Lisp or integrate 3rd party compilers into Visual Studio. ... Windows, HP-UX, and Linux. ...
    (comp.programming)