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
15
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
posted

Hi,

I have one application using UltraGridExcelExporter in Infragistics2.Excel.v10.3 to export excel file. It gives below error. 

The application works fine util I upgrade Office  2013 to Office 365. 

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

   at System.ThrowHelper.ThrowKeyNotFoundException()

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at Infragistics.Excel.Serialization.BIFF8.BIFF8WorkbookSerializationManager.WriteWorksheetRowBlocks(Worksheet worksheet, List`1& dbcellRecordPositions)

   at Infragistics.Excel.Serialization.BIFF8.BIFF8WorkbookSerializationManager.WriteWorksheet(Worksheet worksheet, Boolean hasShapes)

   at Infragistics.Excel.Serialization.WorkbookSerializationManager.WriteWorksheetRecords(Worksheet worksheet, Boolean hasShapes)

   at Infragistics.Excel.Serialization.BIFF8.BIFF8WorkbookSerializationManager.SaveWorkbookContents(Boolean workbookHasShapes)

   at Infragistics.Excel.Serialization.WorkbookSerializationManager.Save()

   at Infragistics.Excel.Workbook.SaveBIFF8File(Stream stream)

   at Infragistics.Excel.Workbook.Save(String fileName, IPackageFactory packageFactory)

   at Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, String fileName)

   at RexallHPGClient.InvoiceForm.ExportToExcel(ExportType type)

   at RexallHPGClient.InvoiceForm.ultraToolbarsManager1_ToolClick(Object sender, ToolClickEventArgs e)

   at Infragistics.Win.UltraWinToolbars.ToolClickEventHandler.Invoke(Object sender, ToolClickEventArgs e)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)

   at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.DoClickProcessing(MouseEventArgs e)

   at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.OnMouseUp(MouseEventArgs e)

   at Infragistics.Win.TextUIElementBase.OnMouseUp(MouseEventArgs e)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)

   at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)

   at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)

   at Infragistics.Win.UltraWinToolbars.PopupControlBase.OnMouseUp(MouseEventArgs e)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

  at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)