简体   繁体   English

获取未处理的异常“日志输入字符串太长。 写入事件日志的字符串不能超过32766个字符”

[英]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 : 关于程序的一些事情:

  1. Program uses a custom web Control which is having an argument for specifying the usercontrol if any. 程序使用自定义Web控件,该控件具有一个用于指定usercontrol(如果有)的参数。

  2. 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中。

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

相关问题 当我在mvc中获取base64的数据时,发现异常{“无效的URI:Uri字符串太长。”} - When i fetch data of base64 in mvc found exception {“Invalid URI: The Uri string is too long.”} 记录未处理的异常 - Log unhandled exception 未在Windows服务中获取OnStart事件日志条目 - Not getting OnStart event log entry in Windows Service 如果在将应用程序放入上一个条目的处理程序内部时将新条目写入事件日志会发生什么? - What happens if a new Entry is written to the Event Log while the application is inside the handler for a previous entry being written? 字符串参数太长。 从数据库到Word模板检索数据 - String parameter too long. retriving data from database to word template 该文件解析为太长的路径。 最大长度为260个字符 - The file resolves to a path that is too long. The maximum length is 260 characters 指定的令牌太长。 最大长度为128个字符 - The token specified is too long. The maximum length is 128 characters 事件日志有错误。 “发生了未处理的异常” - Event log has an error. “An unhandled exception has occurred” NLog中的自定义日志条目字符串格式? - Custom log entry string formatting in NLog? 获取未处理的异常:System.FormatException:当数组中不包含字符时,字符串的长度必须恰好是一个字符 - Getting Unhandled Exception: System.FormatException: String must be exactly one character long when a character is not contained in an array
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM