Hi ,
When i test in VS sutdio in my PC it's OK ,
but when i deploy on the server i ve this error :
Unexpected character encountered while parsing value: <. Path '', line 0, position 0
In SSIS , Source Script task :
(Google Anaytics API, the config connection it s in a json file)
(sample keyfile = C:\test\google_test.json)
private static AnalyticsReportingService GetAnalyticsReportingServiceInstance(string keyFileName){
string[] scopes = { AnalyticsReportingService.Scope.AnalyticsReadonly }; //Read-only access to Google Analytics
GoogleCredential credential;
using (var stream = new FileStream(keyFileName, FileMode.Open, FileAccess.Read))
{
credential = GoogleCredential.FromStream(stream).CreateScoped(scopes);
}
// Create the Analytics service.
return new AnalyticsReportingService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = "GA Reporting data extraction example",
});
}
it s ok on my pc , no on server, why ?
Thanks for your help.
Stef