I am receiving an "unhandled exception" "parameter is not valid" error on program start up. I can click continue but images will not be imported. Below is the eror report.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
at System.Drawing.Bitmap..ctor(Image original, Size newSize)
at MyPhotoIndex.Controls.Thumbnail.DrawImage(Graphics graphics, Boolean selected, ThumbnailSelectionMethod selectionMethod, Boolean showInfoIcons, Boolean showDetails)
at MyPhotoIndex.Controls.MyPhotoIndexThumbnailViewer.DrawOneImage(Graphics graphics, Int32 imageId)
at MyPhotoIndex.Controls.MyPhotoIndexThumbnailViewer.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MyPhotoIndex
Assembly Version: 1.0.0.14
Win32 Version: 1.0.0.14
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
MyPhotoIndex.Utilities
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.Utilities.DLL
----------------------------------------
MyPhotoIndex.Plugins.Manager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.Plugins.Manager.DLL
----------------------------------------
MyPhotoIndex.Plugins.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.Plugins.Interfaces.DLL
----------------------------------------
MyPhotoIndex.ImageBank
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.ImageBank.DLL
----------------------------------------
MyPhotoIndex.DataAccess
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.DataAccess.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
FlickrNet
Assembly Version: 2.1.3.20001
Win32 Version: 2.1.3.20001
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Plugins/FlickrNet.DLL
----------------------------------------
MyPhotoIndex.Plugins.Printing
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Plugins/MyPhotoIndex.Plugins.Printing.DLL
----------------------------------------
MyPhotoIndex.Plugins.Share.Flickr
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Plugins/MyPhotoIndex.Plugins.Share.Flickr.DLL
----------------------------------------
MyPhotoIndex.Plugins.share.OutlookExpress
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Plugins/MyPhotoIndex.Plugins.share.OutlookExpress.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
p1pmnlnz
Assembly Version: 1.0.0.14
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
MyPhotoIndex.Controls
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.Controls.DLL
----------------------------------------
MyPhotoIndex.Importer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.Importer.DLL
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
ndeqp5oy
Assembly Version: 1.0.0.14
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
amgnhuo-
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
MyPhotoIndex.ImageCache
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/MyPhotoIndex.ImageCache.DLL
----------------------------------------
MyPhotoIndex.Plugins.ImageFormatProviders
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Providers/MyPhotoIndex.Plugins.ImageFormatProviders.DLL
----------------------------------------
MyPhotoIndex.Plugins.ImageFormatProviders.Raw
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files/MyPhotoIndex/My%20Photo%20Index/Providers/MyPhotoIndex.Plugins.ImageFormatProviders.Raw.DLL
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.762
Win32 Version: 8.00.50727.762
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700/msvcm80.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.