[英]Getting unhandled exception “Log entry string is too long. A string written to the event log cannot exceed 32766 characters”
I am receiving an Unhandled exception Error: 我收到未处理的异常错误:
[ArgumentException: Log entry string is too long.
[ArgumentException:日志输入字符串太长。 A string written to the event log cannot exceed 32766 characters.]
写入事件日志的字符串不能超过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
####。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
I am getting this error just after the Begin PreRender Event. 刚开始PreRender事件后,我收到此错误。
Few things about the program : 关于程序的一些事情:
Program uses a custom web Control which is having an argument for specifying the usercontrol if any. 程序使用自定义Web控件,该控件具有一个用于指定usercontrol(如果有)的参数。
The whole program is contained in a user control. 整个程序包含在用户控件中。 That is, aspx is only having a webcotrol, rest everything is in the ascx.
也就是说,aspx仅具有webcotrol,其余所有内容都位于ascx中。
I am not using any logging mechanism, as far as i know. 据我所知,我没有使用任何日志记录机制。
please help. 请帮忙。 It will be mighty helpful to me.
对我有很大的帮助。
Please comment if any other information is required. 如果需要任何其他信息,请发表评论。
You will have to talk to the component vendor; 您将不得不与组件供应商交谈; it's their component that's attempting to write to the event log.
正是他们试图写入事件日志的组件。 Nothing we can do about it here.
我们在这里无能为力。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.