ebusiness-failteireland
-
10/29/2009 11:24:21 AM
Getting Async Error Message on the home page
I have followed the instruction to upgrade from version 4.0 to 4.1 but now I am getting
Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.
Message on the home page.
The detail message is
Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event. 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.InvalidOperationException: Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.
Source Error:
Line 1274: this.GetFrontEndTouristItemEventsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFrontEndTouristItemEventsOperationCompleted); Line 1275: } Line 1276: this.InvokeAsync("GetFrontEndTouristItemEvents", new object[] { Line 1277: searchString, Line 1278: LocationID,
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\547319dd\9844a1a6\App_WebReferences.njyaaqm0.0.cs Line: 1276
Stack Trace:
[InvalidOperationException: Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.] System.Web.AspNetSynchronizationContext.OperationStarted() +3327909 System.ComponentModel.AsyncOperationManager.CreateOperation(Object userSuppliedState) +134 System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsync(String methodName, Object[] parameters, SendOrPostCallback callback, Object userState) +103 TCS.Public.GetFrontEndTouristItemEventsAsync(String searchString, Int32 LocationID, Int32 AdditionalRadius, String Categories, DateTime StartDate, DateTime EndDate, Int32 MinimumLevel, Int32 PageSize, Int32 CurrentPage, Int32 SortByOption, Object userState) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\547319dd\9844a1a6\App_WebReferences.njyaaqm0.0.cs:1276 TCS.Public.GetFrontEndTouristItemEventsAsync(String searchString, Int32 LocationID, Int32 AdditionalRadius, String Categories, DateTime StartDate, DateTime EndDate, Int32 MinimumLevel, Int32 PageSize, Int32 CurrentPage, Int32 SortByOption) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\547319dd\9844a1a6\App_WebReferences.njyaaqm0.0.cs:1268 CMSWebParts_DiscoverIreland_Pods_FestivalsEvents.GetFrontEndTouristItemsAsync() in c:\Inetpub\wwwroot\DiscoverIreland 4.1\CMSWebParts\DiscoverIreland\Pods\FestivalsEvents.ascx.cs:61 CMSWebParts_DiscoverIreland_Pods_FestivalsEvents.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\DiscoverIreland 4.1\CMSWebParts\DiscoverIreland\Pods\FestivalsEvents.ascx.cs:46 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 System.Web.UI.Control.OnLoad(EventArgs e) +99 CMS.PortalControls.CMSAbstractWebPart.OnLoad(EventArgs e) +179 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
The site was working fine in version 4.0
|