I have created an executable in C# and Im using SSIS API (Microsoft.SQLServer.ManagedDTS) to execute a package that exports data to excel on Windows 2008 with SQL Server 2008 installed.
I have compiled my executable using X86 so that I can execute in 32bit mode on Windows 2008. On execution,I receive the following error message below. The error happens on the following line.
using Microsoft.SqlServer.Dts.Runtime;
Application integrationServices = new Application();
Error:
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {BA785E28-3D7B-47AE-A4F9-4784F61B598A} failed due to the following error: 80070005.
at Microsoft.SqlServer.Dts.Runtime.Application..ctor()