I have an email application in my website which is coded in asp.net
2.0 c#.

I am getting "Exception : Execution of request failed:
https://www.google.com/a/feeds/xxx.org/user/2.0/ when i use
Google.GData.Apps.dll

I have registered in the bin directory the following  google  dll's :
Google.GData.Apps.dll, Google.GData.Client.DLL,
Google.GData.Extensions.DLL.

I have enabled the provisioning API and am using an administrators
account.

The below is a snippet from the code i have written.

int emlArrLngth = emlAddr.Length;
int chkpoint = emlArrLngth - maillimit;
int emlDiv = 1;
try
{
AppsService service = new AppsService("xxx.org", "[EMAIL PROTECTED]",
"xyz");
//service.RetrieveUser("[EMAIL PROTECTED]");
service.CreateEmailList("abc" + emlDiv + "@xxx.org");
do
{
chkpoint = chkpoint - maillimit;
emlDiv++;
service.CreateEmailList("abc" + emlDiv + "@xxx.org");
}
while (chkpoint > maillimit);
}
catch (AppsException eapps)
{
lblError.Text = "<table>";
if (eapps.ErrorCode == AppsException.EntityDoesNotExist)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.DomainAliasLimitExceeded)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.DomainFeatureUnavailable)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.DomainSuspended)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.DomainUserLimitExceeded)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.EntityNameIsReserved)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.EntityNameNotValid)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else if (eapps.ErrorCode == AppsException.UnknownError)
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
else
{
lblError.Text += "<tr><td>" + eapps.Message + "</td><td>" +
eapps.InnerException + "</td></tr>";
}
lblError.Text += "</table>";
lblError.Focus();
return;
}

please advise. where am I going wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" 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-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to