Getting Error “Namespace Name ”Contacts“ Does Not Exists” in spite of using using “Google.GData.Contacts”?

StackOverflow https://stackoverflow.com/questions/2377279

  •  24-09-2019
  •  | 
  •  

Question

I want to create Contact on Google Apps. I am Using this API

And referring this link

In below code i am using "Using Google.GData.Contacts" :

using Google.GData.Contacts;   // Using Google.GData.Contacts     
using Google.GData.Client;
using Google.GData.Extensions;
using Google.Contacts; // at this place i am getting error

Error: The type or namespace name 'Contacts' does not exist in the namespace 'Google' (are you missing an assembly reference?)

I have included Google.GData.Contacts API. But still it is giving Error.

Can anyone tell me why this is happening? m i missing any Assembly reference?

I want to use:

Contact newContact = new Contact();
newContact.Title.Text = "Liz Doe";

"Contact" does not exist in Either "Google.GData.Contacts" or "Google.GData". Is there any other way to use it?

Was it helpful?

Solution 6

You may be using Wrong version. use Version: 1.4.0.2.

You will find it in Program Files Path

OTHER TIPS

Is the answer:

using Google.GData.Contacts;

Like Ardman already noted, this should probably be enough:

using Google.GData.Contacts;

but you also have a line:

using Google.Contacts;

Either the second using is wrong and you need to remove it, or that namespace resides in 1 or more assemblies you have not referenced yet.

try

using Google.GData;

Looking at the website, I'm guessing that there is a seperate reference that you need to add in order to use Google.Contacts. Check your references to see if you have a seperate Google.Contacts library which you can reference.

Read this: http://code.google.com/apis/gdata/articles/dotnet_client_lib.htmt Check if you are following it or not.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top