We have moved to GitHub Issues
Created by Shannon Deminick 27 Sep 2013, 02:29:42 Updated by crowface 07 Oct 2013, 10:46:32
Relates to: U4-3050
Subtask of: U4-2891
Server Error in '/' Application.
This operation requires the page to be asynchronous (the Async attribute must be set to true).
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: This operation requires the page to be asynchronous (the Async attribute must be set to true).
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[InvalidOperationException: This operation requires the page to be asynchronous (the Async attribute must be set to true).] System.Web.UI.Page.RegisterAsyncTask(PageAsyncTask task) +3145678 umbraco.controls.ContentTypeControlNew.save_click(Object sender, EventArgs e) +560 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +116 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +101 System.Web.UI.WebControls.LinkButton.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) +9642338 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045
While fixed in v7 by commit https://github.com/umbraco/Umbraco-CMS/commit/57af8727e94845008664673358514a3f4e680d43 this bug is so important that it should be back-ported to earlier versions.
Please create a v4 and v6 releases with this show-stopping issue fixed.
The issue does not present itself in versions before 7.
It presents itself in all versions of Umbraco if your WebApp is compiled as a 4.5 assembly, the targetFramework attribute in web.config is set to 4.5 or the aspnet:UseTaskFriendlySynchronizationContext option in applicationSettings is set to true.
We're seeing it in 4.11.8 and those lines of code are unchanged all the way up to the 7.x branch. At the minimum this needs to be patched into the 6.x branch but a 4.11.11 would be nice as otherwise we need to manually patch and build from source.
@crowface We can see if we can update the 6.2.0 build with some of these changes, but we're not re-releasing older versions unless there is a critical security update. Please create a new issue for this!
New issue created as U4-3050
Backwards Compatible: True
Affected versions: 7.0.0
Due in version: 7.0.0