.net - Event-log messages gets expanded when unhandled exceptions are handled by ASP.NET -


"itemprop =" text ">

If I throw an exception from ASP.NET without exception, a warning is added to eventlog (as expected) .

But if the message is a% in the exception, the message is properly displayed in the eventlog:

If the message was

  could not be found Foo% 20bar  

will read eventlog

  foohttp could not be found: //localhost/testpage.aspxbar  

The value after the other numeric% will be converted to another string.

It seems that the message is delivered somewhere on the way through a print statement.

Is this a copy design? Is there a way to avoid this (apart from making sure that exceptions are handled)?

Edit:

If I am in XML-Eventlog, I see:

   & Lt; EventID Qualifiers = "32768" & gt; 130 9 & lt; / EventID & gt; & Lt; Levels & gt; 3 & lt; / Level & gt; & Lt; Tasks & gt; 3 & lt; / Tasks & gt; & Lt; Keyword & gt; 0x80000000000000 & lt; / Keyword & gt; & Lt; Time Created Systemtime = "2009-06-2611 11: 10: 09.000Z" /> & Lt; EventRecordID & gt; 130,253 & lt; / EventRecordID & gt; & Lt; Channel & gt; Application & lt; / Channel & gt; & Lt; Computer & gt; XXX & lt; / Computer & gt; & Lt; Security /> & Lt; / System & gt; & Lt; EventData & gt; & Lt; Data & gt; 3005 & lt; / Data & gt; & Lt; Data & gt; An uncontrolled exception occurred. & Lt; / Data & gt; & Lt; Data & gt; 26-06-2009 13: 10: 09 & lt; / Data & gt; & Lt; Data & gt; 26-06-2009 11: 10: 09 & lt; / Data & gt; & Lt; Data & gt; 525e4e8df6ec432d9a9b9b77e9ded580 & lt; / Data & gt; & Lt; Data & gt; 6 & lt; / Data & gt; & Lt; Data & gt; 1 & lt; / Data & gt; & Lt; Data & gt; 0 & lt; / Data & gt; & Lt; Data & gt; Ecd2c9a5-1-128904882075773124 & lt; / Data & gt; & Lt; Data & gt; Full & lt; / Data & gt; & Lt; Data & gt; / Website1 & lt; / Data & gt; & Lt; Data & gt; C: \ User \ XXX \ Documents \ Visual Studio 2008 \ Web Sites \ WebSite1 \ & lt; / Data & gt; & Lt; Data & gt; XXX & lt; / Data & gt; & Lt; Data / & gt; & Lt; Data & gt; 6404 & lt; / Data & gt; & Lt; Data & gt; WebDev.WebServer.EXE & lt; / Data & gt; & Lt; Data & gt; XXX & lt; / Data & gt; & Lt; Data & gt; Exception & lt; / Data & gt; & Lt; Data & gt; FU% 20Bar & lt; / Data & gt; & Lt; Data & gt; Http: // localhost: 6594 / website1 / Default.aspx & lt; / Data & gt; & Lt; Data & gt; /WebSite1/Default.aspx< / Data & gt; & Lt; Data & gt; 127.0.0.1 & lt; / Data & gt; & Lt; Data & gt; XXX & lt; / Data & gt; & Lt; Data & gt; This is true & lt; / Data & gt; & Lt; Data & gt; NTLM & lt; / Data & gt; & Lt; Data & gt; XXX & lt; / Data & gt; & Lt; Data & gt; 4 & lt; / Data & gt; & Lt; Data & gt; XXX & lt; / Data & gt; & Lt; Data & gt; False & lt; / Data & gt; & Lt; Data & gt; _Default.Page_Load on System.Web.Util.CalliHelper.EventArgFunctionCaller on SystemkWebkUtilkCalliEventHandlerDelegateProxykCallback (object sender, EventArgs e) (IntPtr fp, Object o, Object t, EventArgs e) (from the object, EventArgs System .Web.UI.Control.OnLoad (EventArgs e) at System.Web.UI.Control.LoadRecursive () on System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) e) on the & lt; / Data & gt; & Lt; / EventData & gt; & Lt; / Event & gt;  

It looks fine It seems that the problem may occur in Event Viewer. Does logic converts XML event data into data formatted under normal? After

Unless someone else knows, I 'that it seems like a bug to say Will have to.

If so, report it to a lesser extent. Before looking to the view that what went already given notice. Then, edit your question to include the URL of the bug report. In this way, it can feel to anyone reading this bug is fixed.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -