Question : VB.NET executable error on Excel SaveAs method when run or submitted by SSIS.

When the VB.NET executable is run as an SSIS Process Task the following error is returned by the Microsoft.Office.Interop,Excel.Workbook.SaveAs method:

System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC     at Microsoft.Office.Interop.Excel.WorkbookClass.SaveAs(Object Filename, Object FileFormat, Object Password, Object WriteResPassword, Object ReadOnlyRecommended, Object CreateBackup, XlSaveAsAccessMode AccessMode, Object ConflictResolution, Object AddToMru, Object TextCodepage, Object TextVisualLayout, Object Local)

When the same VB.NET executable is run outside the SSIS environment there is no problem.

Operating system is Windows NT 6.0,  SQL Version is 2005,  VB.NET Version is 2003,  Excel Version is 2007 (12.0)

Answer : VB.NET executable error on Excel SaveAs method when run or submitted by SSIS.

Look at this. Look at the solution at the very bottom. You could try that. It is easy to do.
http://www.sqlservercentral.com/Forums/Topic886366-148-1.aspx
Random Solutions  
 
programming4us programming4us