U4-2957 - Member type saving generates YSOD

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).

Source Error:

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.

Stack Trace:

[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


crowface 04 Oct 2013, 13:57:42

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.

Sebastiaan Janssen 05 Oct 2013, 10:48:54

The issue does not present itself in versions before 7.

crowface 07 Oct 2013, 08:19:50

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.

Sebastiaan Janssen 07 Oct 2013, 09:43:01

@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!

crowface 07 Oct 2013, 10:46:32

New issue created as U4-3050

Priority: Normal

Type: Task

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version: 7.0.0


Story Points: