The ViewStateUserKey property needs to be set during Page_Init.

Stack trace:
at System.Web.UI.Page.set_ViewStateUserKey(String value)
at WOT.PortalControls.WOTAbstractWebPartEx.Page_Init(Object sender, EventArgs e) in D:\Git\TOW_0715\Source\EdenredFi.WOTWeb\App_Codes\WOTAbstractWebPart.cs:line 711
at System.Web.UI.Control.OnInit(EventArgs e)
at CMS.Base.Web.UI.AbstractUserControl.OnInit(EventArgs e)
at CMS.PortalEngine.Web.UI.CMSAbstractWebPart.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)

复制代码
// System.Web.UI.Page
/// <summary>Assigns an identifier to an individual user in the view-state variable associated with the current page.</summary>
/// <returns>The identifier for the individual user.</returns>
/// <exception cref="T:System.Web.HttpException">The <see cref="P:System.Web.UI.Page.ViewStateUserKey" /> property was accessed too late during page processing. </exception>
// Token: 0x1700093A RID: 2362
// (get) Token: 0x060020DC RID: 8412 RVA: 0x0006966A File Offset: 0x0006786A
// (set) Token: 0x060020DD RID: 8413 RVA: 0x00069672 File Offset: 0x00067872
[Browsable(false)]
public string ViewStateUserKey
{
    get
    {
        return this._viewStateUserKey;
    }
    set
    {
        if (base.ControlState >= ControlState.Initialized)
        {
            throw new HttpException(SR.GetString("Too_late_for_ViewStateUserKey"));
        }
        this._viewStateUserKey = value;
    }
}
复制代码

 

System.Web.dll!System.Web.UI.Page.ViewStateUserKey.set(string value) Unknown
.Page_Init(object sender, System.EventArgs e) Line 711 C#
System.Web.dll!System.Web.UI.Control.OnInit(System.EventArgs e) Unknown
CMS.Base.Web.UI.dll!CMS.Base.Web.UI.AbstractUserControl.OnInit(System.EventArgs e) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSAbstractWebPart.OnInit(System.EventArgs e) Unknown
System.Web.dll!System.Web.UI.Control.InitRecursive(System.Web.UI.Control namingContainer) Unknown
System.Web.dll!System.Web.UI.Control.AddedControl(System.Web.UI.Control control, int index) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebPart(System.Web.UI.Control container, CMS.PortalEngine.Web.UI.CMSWebPartZone zone, CMS.PortalEngine.WebPartInstance part, bool reloadData, bool isVariant) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebParts(CMS.PortalEngine.WebPartZoneInstance zoneInstance, bool reloadData) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadZone(CMS.PortalEngine.Web.UI.CMSWebPartZone zone, bool reloadData) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSAbstractLayout.LoadContent(CMS.DocumentEngine.PageInfo pageInfo, bool reloadData, bool allowOrphanedZones) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(CMS.DocumentEngine.PageInfo pageInfo, bool reloadData) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSPagePlaceholder.LoadContent(CMS.DocumentEngine.PageInfo pageInfo, bool reloadData) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSPortalManager.LoadPage(bool reloadData) Unknown
CMS.PortalEngine.Web.UI.dll!CMS.PortalEngine.Web.UI.CMSPortalManager.PageHelper_InitComplete(object sender, System.EventArgs e) Unknown
CMS.Base.Web.UI.dll!CMS.Base.Web.UI.PageContext.CurrentPage_InitComplete(object sender, System.EventArgs e) Unknown
System.Web.dll!System.Web.UI.Page.OnInitComplete(System.EventArgs e) Unknown
System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint) Unknown
System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint) Unknown
System.Web.dll!System.Web.UI.Page.ProcessRequest() Unknown
System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) Unknown
App_Web_portaltemplate.aspx.67ab7734.ktj1niyq.dll!ASP.cmspages_portaltemplate_aspx.ProcessRequest(System.Web.HttpContext context) C#
System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() Unknown
System.Web.dll!System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication.IExecutionStep step) Unknown
System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step, ref bool completedSynchronously) Unknown
System.Web.dll!System.Web.HttpApplication.PipelineStepManager.ResumeSteps(System.Exception error) Unknown
System.Web.dll!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext context, System.AsyncCallback cb) Unknown
System.Web.dll!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest wr, System.Web.HttpContext context) Unknown
System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags) Unknown
System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags) Unknown
System.Web.dll!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(System.IntPtr rootedObjectsPointer, System.IntPtr nativeRequestContext, System.IntPtr moduleData, int flags) Unknown
[AppDomain Transition]

 

对比Kentico7和Kentico12可以发现,堆栈信息不同

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(91)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2019-07-29 cdn and fallback
2017-07-29 git commit template
2015-07-29 SelfCert wcf中 生成x5.09证书的工具
2015-07-29 无法使用以下搜索标准找到 X.509 证书: StoreName“My”、StoreLocation“LocalMachine”、FindType“FindBySubjectName”、FindValue“MyWebSite”。
2015-07-29 在服务 ObtainData 实现的协定列表中找不到协定名称 "IMetadataExchange"。将 ServiceMetadataBehavior 添加到配置文件或直接添加到 ServiceHost,以启用对该协定的支持。
点击右上角即可分享
微信分享提示