Errror With mscorlib.dll - Please Help me

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Everytime I Use ImageList Control to add Image that has more than 256Bits
colours and then an Exception throws at the line:

imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")))


All I have to do is create new Windows Application Project, then add an
ImageList Control to the form and then add an image likes 16bit colors to
Imagelist. Then Run.

When Run, an Run-time exception has thrown, the contain of exception:

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

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


After that, every time I try to run Search in Windows Explorer, it returs
errror:

Unexpected Errors
Action could not be completed.

Anyone can show me how to solve this problem. I'm in hurry

I'm using Windows Server 2003, Visual Studio .NET 2003 and Framework version
v1.1.4322.

Thanks a lot.
 
Are you enabling Visual styles for the developing environment ( devenv.exe).
If so, then the image list might have such problems. Check whether the
directory which contains your devenv.exe file also contains a manifest file
devenv.exe.manifest

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 
Back
Top