开发者

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

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?


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.


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

You will find it in Program Files Path

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜