It would help to know if there are more details in the exception  
(check the response property). If i would have to guess it's probably  
because the base projection (which is created by the createcontactsuri  
method below) is deprecated...

So try creating the Uri by hand (i am changing the .NET client as we  
speak, that method will by default create a full projection in the  
future).

Frank Mantek
Google
On Jun 4, 2008, at 2:37 PM, jai wrote:

>
> Hi,
>
> Did you get any solution for the same problem.
>
> Kindly let me know if you find any solution.
>
> Thanks in advance,
>
> Jai
>
> On Apr 26, 5:03 pm, Deeraf <[EMAIL PROTECTED]> wrote:
>> This exception is occured when i try to run the following code
>> Execution of request 
>> failed:http://www.google.com/m8/feeds/contacts/default/base
>>
>> GAuthSubRequestFactory authFactory = new
>> GAuthSubRequestFactory("cp","GmailTest");
>>            authFactory.Token = (String)Session["token"];
>>            ContactService service = new
>> ContactService(authFactory.ApplicationName);
>>            service.RequestFactory = authFactory;
>>
>>            ContactEntry newEntry = new ContactEntry();
>>            newEntry.Title.Text = "Information";
>>
>>            EMail primaryEmail = new EMail("[EMAIL PROTECTED]");
>>            primaryEmail.Primary = true;
>>            primaryEmail.Rel = ContactsRelationships.IsWork;
>>            newEntry.Emails.Add(primaryEmail);
>>
>>            PhoneNumber phoneNumber = new PhoneNumber("111-111-222");
>>            phoneNumber.Primary = true;
>>            phoneNumber.Rel = ContactsRelationships.IsMobile;
>>            newEntry.Phonenumbers.Add(phoneNumber);
>>
>>            newEntry.Content.Content = "Information Center";
>>
>>            Uri uriFeed = new
>> Uri(ContactsQuery.CreateContactsUri("default"));
>>            ContactEntry createEntry =
>> (ContactEntry)service.Insert(uriFeed, newEntry);
>>
>> Last line is having exception
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data Protocol" 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/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to