Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7610339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:23:42+00:00 2026-05-31T01:23:42+00:00

I’m learning a .Net library to connect to the AdWords API. My first block

  • 0

I’m learning a .Net library to connect to the AdWords API. My first block occurs when I try to create a service using my AdWordsUser object. I get a TargetInvocationException:

Exception has been thrown by the target of an invocation

Inner exception:

The value of the property 'type' cannot be parsed. The error is: Could not
load file or assembly 'Google.Ads.Common, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=52807268f2b614dc' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference. (Exception
from HRESULT: 0x80131040)

Based on my Googling, the main fix suggested is to add a reference to SoapListenerExtension in your app.config. I’ve tried two methods (shown at the end of the question) with no change.

My app includes references to the Google.Ads.Common, Google.AdWords, and System.Web.Services libraries. Here’s my code, with expanded references to eliminate ambiguity.

var  headers    = new Dictionary<string, string>();
headers.Add("email", Properties.Settings.Default.AdWordsUserName);
// Rest of the creds
var  _user      = new Google.Api.Ads.AdWords.Lib.AdWordsUser(headers);
var  sig        = Google.Api.Ads.AdWords.Lib.AdWordsService.v201109.CampaignService;
var  rawService = _user.GetService(sig);  // The exception is thrown here
var  service    = (Google.Api.Ads.AdWords.v201109.CampaignService)rawService;

There’s no change if I leave out the password, so I don’t think it’s a problem with my creds: the code hasn’t gotten that far.

The Google.AdWords library includes some classes in the Google.Api.Ads.Common.Lib namespace, but not SoapListenerExtension. Is this tucked away in some other DLL in this library, perhaps?

I’ve looked through a dozen questions here on SO that relate to the AdWords API, but nothing relating to this specific error.


Edit

Using AppDomain.CurrentDomain.GetAssemblies(), I’ve polled the assemblies loaded. If I include this harmless line:

var  cs = Google.Api.Ads.AdWords.Lib.AdWordsService.v201109.CampaignService;

This assembly is loaded, seemingly successfully:

Loaded: Google.Ads.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

…so it looks like the assembly I have is unsigned. Sure enough, there is a signed version of the API available. Maddeningly, it’s structured differently from the unsigned version, and most of the fully-qualified names aren’t valid any more. Back to the drawing board.


Appendix

Web service method 1:

  <system.web>
    <webServices>
      <soapExtensionTypes>
        <add type="Google.Api.Ads.Common.Lib.SoapListenerExtension, Google.Ads.Common" priority="1" group="0"/>
      </soapExtensionTypes>
    </webServices>
  </system.web>

Method 2:

<system.web>
    <webServices>
        <soapExtensionTypes>
            <add type="Google.Api.Ads.Common.Lib.SoapListenerExtension, Google.Ads.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=52807268f2b614dc" priority="1" group="Low"/>
        </soapExtensionTypes>
    </webServices>
</system.web>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:23:43+00:00Added an answer on May 31, 2026 at 1:23 am

    Swapping my references to the signed version did the trick. In retrospect, I suppose the error messages were pointing to that fairly clearly. I’m left wondering what the unsigned versions are used for or, putting it the other way, why is it that only the signed versions worked in this instance?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.