Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Script task on Server : Unexpected character encountered while parsing value:

$
0
0

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


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>