Workflow exception "The EnableHistory property cannot be changed after the Init event" when publishing a Page after upgrade

« Go Back


EnvironmentProduct: Sitefinity
Versions: 5.x, 6.x, 7.x, 8.x, 9.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
A workflow exception is logged when trying to publish a Page after the upgrade is done:

Steps to Reproduce
Clarifying Information
Error MessageMessage: HandlingInstanceID: 9e35993a-e8e1-4d44-a804-56cac447e85f
An exception of type 'System.Web.HttpUnhandledException' occurred and was caught.
02/15/2017 12:32:52
Type : System.Web.HttpUnhandledException, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source : System.Web
Help link :
WebEventCode : 0
ErrorCode : -2147467259
Data : System.Collections.ListDictionaryInternal
TargetSite : Boolean HandleError(System.Exception)
HResult : -2147467259
Stack Trace : at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.sfres_telerik_sitefinity_resources_sitefinitydefault_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0caaef1a\8c5df8a5\App_Web_telerik.sitefinity.resources.sitefinitydefault.aspx.f785aa1a.bzleu75e.0.cs:line 0
at Telerik.Sitefinity.Web.ResourceCombining.InMemoryPageRender.RenderPageInternal(PageNode pageNode, Boolean isPreview, Boolean isIndexMode)
at Telerik.Sitefinity.Publishing.Pipes.PageInboundPipe.RenderPage(PageNode node)
at Telerik.Sitefinity.Publishing.Pipes.PageInboundPipe.SetWrapperObjectProperties(WrapperObject wrapperObject, PageNode node)

Additional Info:

TimeStamp : 2/15/2017 5:32:52 PM
FullName : Telerik.Sitefinity.Utilities, Version=9.2.6226.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/179/ROOT-2-131316535199428251
ThreadIdentity :
Requested URL : http://localhost:6033/Sitefinity/Services/Workflow/WorkflowService.svc/MessageWorkflow/2bf0bcb0-5245-6b66-b263-ff0000e044c6/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&workflowOperation=Publish
Inner Exception
Type : System.InvalidOperationException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The EnableHistory property cannot be changed after the Init event.
Source : System.Web.Extensions
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void set_EnableHistory(Boolean)
HResult : -2146233079
Stack Trace : at System.Web.UI.ScriptManager.set_EnableHistory(Boolean value)
at Telerik.Sitefinity.Web.RouteHandler.EnsureScriptManagerInternal(Page page)
at Telerik.Sitefinity.Modules.Pages.StaticPageData.CreateChildControls(Page page, Boolean isFrontEndPage)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Defect/Enhancement Number
A reason for this exception to happen could be a wrong (old) version of the Telerik.OpenAccess.dll being still referenced.
Consider adding an assembly binding in the <runtime>/<assemblyBinding> section in the web.config file. E.g:
        <assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7ce17eeaf1d59342"/>
        <bindingRedirect oldVersion="" newVersion="2016.2.822.1"/>

In the above example type in the newVersion attribute the version of the current Telerik.OpenAccess.dll
Last Modified Date2/17/2017 4:26 PM

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.

Was this article helpful?


Your feedback is appreciated.

Please tell us how we can make this article more useful.

Characters Remaining: 255