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.
Ryan Taylor - 01 Aug 2005 19:06 GMT
Well, turns out it was partially Visual Assists fault. Visual Assist added
the DEVENV.exe.manifest file to the VS 2003 install path. Evidently there is
a serializing problem using Windows themes and the image list. If anyone has
more info regarding this issue, please fill me in. Thanks.
Deleting the DEVENV.exe.manifest and readding the images to the imagelist
control solved the problem.
> Hello.
>
[quoted text clipped - 19 lines]
>
> Thanks in advance.