Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 258677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:12:02+00:00 2026-05-11T22:12:02+00:00

If I throw an unhandled exception from ASP.NET, a warning is added to the

  • 0

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

But if the message in the exception contains a %, the message in the eventlog gets garbled:

If the Message was

Could not find foo%20bar

the eventlog will read

Could not find foohttp://localhost/testpage.aspxbar

Other numeric values after the % will be converted to other strings.

It looks like the message gets passed through a printf-statement somewhere on the way.

Is this per design? Is there a way to avoid this (besides making sure that exceptions are handled)?

EDIT:

If I look at the XML-view under details in the eventlog, I see:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
  <Provider Name="ASP.NET 2.0.50727.0" /> 
  <EventID Qualifiers="32768">1309</EventID> 
  <Level>3</Level> 
  <Task>3</Task> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2009-06-26T11:10:09.000Z" /> 
  <EventRecordID>130253</EventRecordID> 
  <Channel>Application</Channel> 
  <Computer>XXX</Computer> 
  <Security /> 
</System>
<EventData>
  <Data>3005</Data> 
  <Data>An unhandled exception has occurred.</Data> 
  <Data>26-06-2009 13:10:09</Data> 
  <Data>26-06-2009 11:10:09</Data> 
  <Data>525e4e8df6ec432d9a9b9b77e9ded580</Data> 
  <Data>6</Data> 
  <Data>1</Data> 
  <Data>0</Data> 
  <Data>ecd2c9a5-1-128904882075773124</Data> 
  <Data>Full</Data> 
  <Data>/WebSite1</Data> 
  <Data>C:\Users\XXX\Documents\Visual Studio 2008\WebSites\WebSite1\</Data> 
  <Data>XXX</Data> 
  <Data /> 
  <Data>6404</Data> 
  <Data>WebDev.WebServer.EXE</Data> 
  <Data>XXX</Data> 
  <Data>Exception</Data> 
  <Data>Foo%20Bar</Data> 
  <Data>http://localhost:6594/WebSite1/Default.aspx</Data> 
  <Data>/WebSite1/Default.aspx</Data> 
  <Data>127.0.0.1</Data> 
  <Data>XXX</Data> 
  <Data>True</Data> 
  <Data>NTLM</Data> 
  <Data>XXX</Data> 
  <Data>4</Data> 
  <Data>XXX</Data> 
  <Data>False</Data> 
  <Data>at _Default.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</Data> 
</EventData>
</Event>

This looks fine. So it looks like the problem might be in the Event Viewer. What logic converts the XML event data into the formatted data under General?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:12:02+00:00Added an answer on May 11, 2026 at 10:12 pm

    Unless someone else knows otherwise, I’ll have to say that this sounds like a bug.

    If so, then please report this at http://connect.microsoft.com/visualstudio/. Please search first to see if it’s already been reported. Then, edit your question to include the URL of the bug report. That way, anyone reading this can vote on how important they feel this bug is to fix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 281k
  • Answers 281k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer jQuery's append function uses Node.appendChild() under the hood and so… May 13, 2026 at 3:53 pm
  • Editorial Team
    Editorial Team added an answer The CS3 components check as follows: protected function checkLivePreview():Boolean {… May 13, 2026 at 3:53 pm
  • Editorial Team
    Editorial Team added an answer Just use the StreamWriter class, and Close the file appropriately.… May 13, 2026 at 3:53 pm

Related Questions

I have an ASP.net WebService which uses a Library, this has a dependency on
I'm currently using log4net in my ASP.NET MVC application to log exceptions. The way
I'm currently using an Open Session in View pattern in an ASP.NET WebForms application
I've been using NHibernate for a while now and have found from time to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.