Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Problem with Databinding and .NET 4.5
posted

Hi,

I have a strange Problem with UltraCombo and Databinding after installing .NET Framework 4.5.

My Project runs under Windows 7 (x86 and x64) on Visual Studio 2010, compiled for .NET Framework 4.5 with Infragistics 12.1 for .NET 4.

When I only install .NET 4.5 (what happens when I install Visual Studio 2012) I get the following Exception when setting an UltraCombos DataSource (either when debugging in Visual Studio and when running the compiled, deployed version).

   bei Infragistics.Shared.KeyedSubObjectsCollectionBase.ValidateKeyDoesNotExist(String key, IKeyedSubObject ignoreObject)
   bei Infragistics.Shared.KeyedSubObjectsCollectionBase.ValidateKey(String key, IKeyedSubObject ignoreObject)
   bei Infragistics.Shared.KeyedSubObjectsCollectionBase.InternalAdd(IKeyedSubObject obj)
   bei Infragistics.Win.UltraWinGrid.ColumnsCollection.InternalAdd(UltraGridColumn column)
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.InitColumns(UltraGridBand[] oldBands)
   bei Infragistics.Win.UltraWinGrid.UltraGridBand.InitListManager(BindingManagerBase bindingManager, String dataMember, UltraGridBand[] oldBands)
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated(BindingManagerBase bindingManager)
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated()
   bei Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager(Object newDataSource, String newDataMember)
   bei Infragistics.Win.UltraWinGrid.UltraGridBase.set_DataSource(Object value)
   bei GuiLayer.Implementation.Helper.UltraGridHelper.BindList[T](List`1 dataList, UltraDropDownBase dataControl, String displayMember, String valueMember)

When I add a new winform to my project, put there an UltraCombo an bind a List of business objects; that works! So the existing dialogs/ultracombos cause the exception, but new dialogs/ultracombos I can add without getting the exception.

After uninstalling .NET 4.5 it all works fine again.

I really cannot imagine what causes this exception. I hope you can help me with that.

Parents
  • 30
    posted

    Sorry to hear that you are running into an issue. I would like to take a look. I am from .NET Framework compatibility team.

    Could you email me at netfx45compat at Microsoft dot com with code that I can use to reproduce the issue on my machine.

    Regards,

    Varun

     

Reply Children