This is a migrated thread and some comments may be shown as answers.

Mapping dialog exception

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Markus
Top achievements
Rank 1
Markus asked on 20 Nov 2008, 11:50 AM
If I open forward mapping dialog I get a System.ArgumentException. If I click OK everythings seems ok. But the exception occurs everytime I select an new class in tree view on the left.

Stacktrace on Details:

Exception:  Invalid member name.

Generated by the method: Void .ctor(System.String, System.Attribute[])

Stack Trace:    at System.ComponentModel.MemberDescriptor..ctor(String name, Attribute[] attributes)
   at System.ComponentModel.PropertyDescriptor..ctor(String name, Attribute[] attrs)
   at VtShared.Sdk.Addin.UserControls.Index.IndexFieldDescriptor.GetProperties(Attribute[] attributes)
   at System.ComponentModel.TypeDescriptor.MergedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
   at System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
   at System.ComponentModel.TypeDescriptor.GetProperties(Object component, Attribute[] attributes)
   at System.Windows.Forms.ListBindingHelper.GetListItemPropertiesByEnumerable(IEnumerable enumerable)
   at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list)
   at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list, PropertyDescriptor[] listAccessors)
   at System.Windows.Forms.CurrencyManager.GetItemProperties(PropertyDescriptor[] listAccessors)
   at System.Windows.Forms.CurrencyManager.GetItemProperties()
   at System.Windows.Forms.DataGrid.PairTableStylesAndGridColumns(CurrencyManager lm, DataGridTableStyle gridTable, Boolean forceColumnCreation)
   at System.Windows.Forms.DataGrid.SetDataGridTable(DataGridTableStyle newTable, Boolean forceColumnCreation)
   at System.Windows.Forms.DataGrid.Set_ListManager(Object newDataSource, String newDataMember, Boolean force, Boolean forceColumnCreation)
   at System.Windows.Forms.DataGrid.set_DataSource(Object value)
   at VtShared.Sdk.Addin.UserControls.CustomGridUserControl.ResetGrid(GridBindingList gridList)
   at VtShared.Sdk.Addin.UserControls.CustomGridUserControl.DataBindToGrid(IMdClass _mdClass)
   at VtShared.Sdk.Addin.UserControls.Index.IndexControl.ActivateUserControl(VSMetadata _metadata)

Exception Type: System.ArgumentException

Any solution ?

Markus



1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 24 Nov 2008, 10:34 AM
Hi Markus,

Can you send me your solution? There seems to be some code in your project that we do not understand. Please use the support to send your project.

Greetings,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Markus
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or