簡體   English   中英

獲取未處理的異常“日志輸入字符串太長。 寫入事件日志的字符串不能超過32766個字符”

[英]Getting unhandled exception “Log entry string is too long. A string written to the event log cannot exceed 32766 characters”

我收到未處理的異常錯誤:

[ArgumentException:日志輸入字符串太長。 寫入事件日志的字符串不能超過32766個字符。]

####。UI.WebControls.MainControl.DealWithException(Exception e)+1212 ####。UI.WebControls.MainControl.CreateChildControls()+4799 System.Web.UI.Control.EnsureChildControls()+122 System.Web .UI.Control.PreRenderRecursiveInternal()+49 System.Web.UI.Control.PreRenderRecursiveInternal()+226 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+7632

開始PreRender事件后,我收到此錯誤。

關於程序的一些事情:

  1. 程序使用自定義Web控件,該控件具有一個用於指定usercontrol(如果有)的參數。

  2. 整個程序包含在用戶控件中。 也就是說,aspx僅具有webcotrol,其余所有內容都位於ascx中。

  3. 據我所知,我沒有使用任何日志記錄機制。

請幫忙。 對我有很大的幫助。

如果需要任何其他信息,請發表評論。

您將不得不與組件供應商交談; 正是他們試圖寫入事件日志的組件。 我們在這里無能為力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM