Yes, it works fine on localhost!
On 10 Nov 2011, at 00:01, Alain Vongsouvanh <[email protected]> wrote: > Hello, > > Have you tried running your application on a staging server or your own > computer? As you mentioned, the server on which the application is running > might have some issues reaching Google's server which can happen for various > reasons. > > Best, > Alain > > On Tue, Nov 8, 2011 at 3:00 PM, Daf <[email protected]> wrote: > Hi, > > I'm getting the following error when trying to create a new event. The page > hangs for ages and then I get the error. I think my host 1and1 is blocking > this in some way not sure why or how. Anyone able to throw any light on the > situation so that I'm better equipped when speaking to my host? Any help > would be appreciated. > > > Server Error in '/' Application. > The operation has timed out > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information about > the error and where it originated in the code. > > Exception Details: System.Net.WebException: The operation has timed out > > Source Error: > > Line 86: > Line 87: // Send the request and receive the response: > Line 88: AtomEntry insertedEntry = m_Service.Insert(postUri, entry); > Line 89: > Line 90: } > > > Source File: > e:\kunden\homepages\19\xxxxxxxxxxxx\www\campervan\App_Code\GoogleCalendar.cs > Line: 88 > > Stack Trace: > > [WebException: The operation has timed out] > System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) > +1872977 > System.Net.HttpWebRequest.GetRequestStream() +13 > Google.GData.Client.Utilities.QueryClientLoginToken(GDataCredentials gc, > String serviceName, String applicationName, Boolean fUseKeepAlive, IWebProxy > proxyServer, Uri clientLoginHandler) +626 > Google.GData.Client.GDataGAuthRequest.QueryAuthToken(GDataCredentials gc) > +251 > Google.GData.Client.GDataGAuthRequest.EnsureCredentials() +41 > Google.GData.Client.GDataRequest.EnsureWebRequest() +1101 > Google.GData.Client.GDataGAuthRequest.EnsureWebRequest() +26 > Google.GData.Client.GDataGAuthRequest.CopyRequestData() +48 > Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +480 > Google.GData.Client.GDataGAuthRequest.Execute() +10 > Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase baseEntry, > GDataRequestType type, AsyncSendData data) +190 > Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry newEntry, > AsyncSendData data) +60 > Google.GData.Client.Service.Insert(Uri feedUri, TEntry entry) +50 > GoogleCalendar.CreateBooking(DateTime p_start, DateTime p_end) in > e:\kunden\homepages\19\xxxxxxxxxxxx\www\campervan\App_Code\GoogleCalendar.cs:88 > _Default.CreateEvent_Click(Object sender, EventArgs e) in > e:\kunden\homepages\19\xxxxxxxxxxxx\www\campervan\Default.aspx.cs:27 > System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 > System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) > +110 > > System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String > eventArgument) +10 > System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, > String eventArgument) +13 > System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 > System.Web.UI.Page.ProcessRequestMain(Boolean > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 > > > My function: > public void CreateBooking(DateTime p_start, DateTime p_end) > { > EventEntry entry = new EventEntry(); > > // Set the title and content of the entry. > entry.Title.Text = "Event Title"; > entry.Content.Content = "Event Content"; > > // Set a location for the event. > Where eventLocation = new Where(); > eventLocation.ValueString = "Location"; > entry.Locations.Add(eventLocation); > > When eventTime = new When(p_start, p_end, true); > entry.Times.Add(eventTime); > > > > Uri postUri = new Uri(m_CalendarUrl); > > // Send the request and receive the response: > AtomEntry insertedEntry = m_Service.Insert(postUri, entry); > > } > > > -- > You received this message because you are subscribed to the Google > Groups "Google Calendar Data API" 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://code.google.com/apis/calendar/community/forum.html > > > > -- > Alain Vongsouvanh | Developer Programs Engineer > -- > You received this message because you are subscribed to the Google > Groups "Google Calendar Data API" 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://code.google.com/apis/calendar/community/forum.html -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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://code.google.com/apis/calendar/community/forum.html
