Hi,
I am using Google Adwords Api for Excel Addin using c#.Net in visual studio
2017.
Unable to load adwords account due to an exception at Adwords User metadata
file.
AdWordsUser user = new AdWordsUser();
(user.Config as AdWordsAppConfig).ClientCustomerId =
Globals.ThisAddIn.LXRCustomerID;
(user.Config as AdWordsAppConfig).DeveloperToken =
Globals.ThisAddIn.AdWordsDeveloperToken;
(user.Config as AdWordsAppConfig).OAuth2RefreshToken =
Globals.ThisAddIn.refreshtoken;
(user.Config as AdWordsAppConfig).OAuth2AccessToken =
Globals.ThisAddIn.AdwordsAccessToken;
(user.Config as AdWordsAppConfig).OAuth2ClientId =
Globals.ThisAddIn.AdWordsClientId;
(user.Config as AdWordsAppConfig).OAuth2ClientSecret =
Globals.ThisAddIn.AdWordsClientSecretId;
Exception after following line.
AdWordsUser user = new AdWordsUser();
Info at Adwords User Metadata File.
public AdWordsUser();
//
// Summary:
// Public constructor. Use this version if you want to
construct an AdWordsUser
// with a custom configuration.
public AdWordsUser(AdWordsAppConfig config);
//
// Summary:
// Parameterized constructor. Use this version if you want to
construct an AdWordsUser
// with a custom set of headers.
//
// Parameters:
// headers:
// The custom set of headers.
Exception has the following message.
Could not load file or assembly 'Google.Apis.Core, Version=1.33.1.0,
Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its
dependencies. The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT:
0x80131040)":"Google.Apis.Core, Version=1.33.1.0, Culture=neutral,
PublicKeyToken=4b01fa6e34db77ab.
I am attaching Fusion Log file for the error.
Please solve my issue.
Thanks in advance,
Pallavi
--
CONFIDENTIALITY INFORMATION AND DISCLAIMER
This email message and
its attachments may contain
confidential, proprietary or legally privileged
information and is intended
solely for the use of the individual or entity
to whom it is addressed. If you
have erroneously received this message,
please delete all copies of it
immediately and notify the sender. If you
are not the intended recipient of the
email message you should not
disseminate, distribute or copy this e-mail.
E-mail transmission cannot be
guaranteed to be secure or error-free as information
could be intercepted,
corrupted, lost, destroyed, incomplete or contain viruses
and NetElixir
accepts no liability for any damage caused by the limitations of
the e-mail
transmission. Thank you for your cooperation.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/617cc2bb-6e62-48f9-9f09-350fdcb7dba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
=== Pre-bind state information ===
LOG: DisplayName = Google.Apis.Core, Version=1.33.1.0, Culture=neutral,
PublicKeyToken=4b01fa6e34db77ab
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/NetElixir Inc/LXRPlugin/
LOG: Initial PrivatePath = NULL
Calling assembly : Google.Ads.Common, Version=9.4.0.0, Culture=neutral,
PublicKeyToken=52807268f2b614dc.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Google.Apis.Core, Version=1.33.1.0,
Culture=neutral, PublicKeyToken=4b01fa6e34db77ab
LOG: Attempting download of new URL file:///C:/Program Files (x86)/NetElixir
Inc/LXRPlugin/Google.Apis.Core.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.