I created a SSIS package that pulls data from Google Analytics using the Google.Apis.AnalyticsReporting.v4 library. I have added the library to the GAC using gacutil on my development machine and also on the production machine. If I run the package from Visual Studio on either machine it runs correctly, but if I run the deployed package from SQL Server (through SSMS) it crashes. I have tried running in 64-bit and 32-bit mode with the same results. Other Google.Apis libraries are registered and work fine, only the AnalyticsReporting.v4 causes the crash. Does the GAC have issues with assemblies with numbers in the name (the v4)? Below is a sample of the code that is triggering a crash.
using Google.Apis.AnalyticsReporting.v4;
namespace ST_468d8ac6166c473dacba923eda37a1d1
{
[Microsoft.SqlServer.Dts.Tasks.ScriptTask.SSISScriptTaskEntryPointAttribute]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
{
public void Main()
{
AnalyticsReportingService service = new AnalyticsReportingService();
}
}
}