Exception when loading business object

Stimulsoft Reports.NET discussion
Post Reply
grazi
Posts: 39
Joined: Fri May 23, 2008 1:55 am

Exception when loading business object

Post by grazi »

Hi there,

i just wanted to inform that it's possible to cause an argumentnullexception when loading certain assemblies as business objects in the report designer.
Do you know what could cause such an error? I'm using the latest prerelease version

The exception text looks like this:

System.ArgumentNullException: Der Schlüssel darf nicht NULL sein. ---> (means, the key mustn't be null)
Parametername: key
bei System.Collections.Hashtable.get_Item(Object key)
bei Stimulsoft.Report.Dictionary.Design.StiSelectPropertiesInAssemblyForm.Build()
bei Stimulsoft.Report.Dictionary.Design.StiSelectPropertiesInAssemblyForm..ctor(Assembly assembly)
bei Stimulsoft.Report.Dictionary.Design.StiDataStoreSourceEditForm.tbGetColumnsFromAssembly_Click(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei Stimulsoft.Controls.StiToolButton.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei Stimulsoft.Controls.StiToolButton.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
grazi
Posts: 39
Joined: Fri May 23, 2008 1:55 am

Exception when loading business object

Post by grazi »

Hi again,
i just figured it out by myself. The problem arises, when a class is defined in no namespace, so be careful with the parentheses :blush:
Post Reply