I developed a C # program that extracts data from a SQL Server database and then creates Word documents that include data. I installed the program to run as part of the SSIS job in a Windows Server 2003 window. The program runs as a SQLSVC user who does not have administrative privileges. When I log in as SQLSVC and run the program, it runs correctly. However, when the program starts automatically as an SSIS job, it freezes in the next line of code
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
When I force a process kill, the following error message is generated.
Error Message: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005. at IepGlance.Program.CreateNewIepFiles(Dictionary`2 iepDictionary, EasyIepDataContext dbContext) at IepGlance.Program.Main(String[] args)
As far as I can understand, the problem is with DCOM permissions. I used dcomcnfg to add all the possible DCOM permissions for the SQLSVC user, but that didn't help. Are there other possible solutions?
source share