Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Question Excel 2007 VSTO - Why do I get 0x80010105 upon Excel.Close()?

From time to time (not an each run, but 5th or 6th in a row) I get the following exception at the last line in the code:

Microsoft.Office.Interop.Excel.Workbook wbNew = _ExcelApp.Workbooks.Add(Type.Missing);
wsResults.Copy(Type.Missing, wbNew.Worksheets[3]);
wbNew.SaveAs(string.Format("SummaryView-{0}-{1}.xlsx", segmentId, year),
XlFileFormat.xlOpenXMLWorkbook, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlShared, Type.Missing, Type.Missing, Type.Missing
, Type.Missing, Type.Missing);
wbNew.Close(false, Type.Missing, Type.Missing);



System.Runtime.InteropServices.COMException: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)).


Why do I get it and how to fix the problem?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incomplete Office 2007 install? Where are .NET PIAs for Excel? Need VSTO? John Brock Excel Discussion (Misc queries) 3 February 26th 09 05:21 PM
Can not close excel 2007 DaveAtJCI Excel Discussion (Misc queries) 0 February 9th 09 04:36 PM
Excel 2007 cannot close DeltaOne Excel Discussion (Misc queries) 0 August 20th 08 05:06 PM
Close All in excel 2007 Anita Excel Discussion (Misc queries) 1 February 9th 07 09:22 PM


All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"