I'm running into an error and think I know what it means - at least generally speaking - but I've not been able to find anything relevant online to point me toward a solution.
I have an SSIS package that uses two different Script Tasks. The 2nd of which uses some C# code I found online that (should) combine single-page TIF images into a single multi-page file. I'm basically C# ignorant, but managed to get it into the script task and was able to build it without any errors. However, when I run the package I get the following message:
"...TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\System.__ComObject'..."
I've discovered that "System.__ComObject" means it's looking for an unknown System object that it is unable to find. Checking the c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ directory, there are no files named "System" contained within. I did* find some system dll files in the .NET directory, and tried copying them into the directory above, but still no luck.
Before I post this over on Stack Overflow, etc. and deal with all that noise, can any of you provide any further insight into what I'm doing wrong, or how I can troubleshoot this further? The full error message is below:
SSIS package "Package.dtsx" starting. Error: 0x1 at Merge Tiffs: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\System.__ComObject'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) at System.IO.Directory.GetFiles(String path) at ST_20f6839868194421a379dbf1f80ad4a0.csproj.ScriptMain.Main() --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript() Task failed: Merge Tiffs Warning: 0x80019002 at Parse Filenames by Subfolder: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "Package.dtsx" finished: Failure.