DataDridView Error on STS Fereration Metadata Editor v1.2

Oct 13, 2012 at 8:01 AM

Hello

I have got an error trying to open my FederationMetadata.xml.

The first message that I have had was about a possible error in the certificate and there was the possibility to repair it automatically. After this I have click again on the Load Metadata Button and I have got an error. I don't think that this error depend from the automatic repair of the certificate.

I try also to open the same FederationMetadata.xml with the version 1.0 and works fine. 

So following there is the error and its details:

System.InvalidOperationException: Can not add rows to a DataGridView control that does not have columns. Add columns first.

 

Original Error Details:

************** Testo dell'eccezione **************
System.InvalidOperationException: Impossibile aggiungere righe a un controllo DataGridView che non dispone di colonne. Aggiungere prima le colonne.
   in System.Windows.Forms.DataGridViewRowCollection.InsertInternal(Int32 rowIndex, DataGridViewRow dataGridViewRow, Boolean force)
   in System.Windows.Forms.DataGridView.DataGridViewDataConnection.ProcessListChanged(ListChangedEventArgs e)
   in System.Windows.Forms.DataGridView.DataGridViewDataConnection.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)
   in System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
   in System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
   in System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)
   in System.Windows.Forms.BindingSource.InnerList_ListChanged(Object sender, ListChangedEventArgs e)
   in System.ComponentModel.BindingList`1.OnListChanged(ListChangedEventArgs e)
   in System.ComponentModel.BindingList`1.FireListChanged(ListChangedType type, Int32 index)
   in System.ComponentModel.BindingList`1.InsertItem(Int32 index, T item)
   in System.Collections.ObjectModel.Collection`1.Add(T item)
   in STSFederationMetadataEditor.frmMain.LoadEntity(EntityDescriptor myEntity)
   in STSFederationMetadataEditor.frmMain.cmdLoad_Click(Object sender, EventArgs e)
   in System.Windows.Forms.Control.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnClick(EventArgs e)
   in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ButtonBase.WndProc(Message& m)
   in System.Windows.Forms.Button.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assembly caricati **************
mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.269 (RTMGDR.030319-2600)
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
STSFederationMetadataEditor
    Versione assembly: 1.2.0.0
    Versione Win32: 1.2.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/STSFederationMetadataEditor/STSFederationMetadataEditor.exe
----------------------------------------
System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.278 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.282 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.269 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.IdentityModel
    Versione assembly: 3.5.0.0
    Versione Win32: 6.1.7600.16394
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.IdentityModel/3.5.0.0__31bf3856ad364e35/Microsoft.IdentityModel.dll
----------------------------------------
System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.233 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.245 (RTMGDR.030319-2400)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.233 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Numerics
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.ServiceModel
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.233 built by: RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.IdentityModel
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
----------------------------------------
System.Runtime.Serialization
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
SMDiagnostics
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 (RTMRel.030319-0100)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Runtime.DurableInstancing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.1 built by: RTMRel
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.DurableInstancing/v4.0_4.0.0.0__31bf3856ad364e35/System.Runtime.DurableInstancing.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.235 (RTMGDR.030319-2300)
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------