Debugging .NET - “Common Language Runtime Debugging Services Application has generated an exception that could not be handled”

Posted in Programming, windows, dotnet (May 12, 2007 at 1:13 am)

ProfileTool doesn’t work on half the machines I try it on. I get an error like:

Profiletool.exe Common Language Runtime Debugging Services
Application has generated an exception that could not be handled.
Process ID=0×14 (1300), Thread Id=0xe8(232)

Click OK to terminate the application.
Click CANCEL to debug the application.

There’s no point searching Google for the process ID and thread number; they’re unique to your instance.

What can you do here? You get an error suggesting that ‘debugging failed’ if you hit Cancel - this is correct, because you don’t have a debugger installed!

First step, if you’re running your .NET application off the network, stop, move it to your local disk, and try again. The default security policy doesn’t let you do this - you can edit it in the Administrative Tools if you need to.

Now, if you still get the error, drop to a command line, and run the following:

ProfileTool 2>error.log

This redirects the standard error output to error.log, which you can then read. Linux/UNIX outputs this to the terminal by default; Windows hides it.

Thanks to Frank Racis, by way of Mohamed Yehia.

The actual error, in this case, was “No mapping between user accounts and security IDs was done“, which really means “don’t catch System.SystemException when you are throwing System.Exception”. And when you’re testing new builds, don’t sit behind an ISA server which aggressively caches the old build.

…more

No Responses to “Debugging .NET - “Common Language Runtime Debugging Services Application has generated an exception that could not be handled””

  1. Hanley Says:

    Gay bisexual orgies galleries hottest video.
    Teeny yrs old sex 30 pix thumbnails.Cum here for more hot films.
    This service offers instant access to Hardcore pornsatrs movie.
    Enter a El grupo musical libido page..Enter now to take a look at films.
    I like this Feelings movie.

  2. Elinor Says:

    Looking for slits.denizgayrimenkul.com? Find exactly what you want today.
    lowest prices for penis-enlargement-pill.perryparkcc.net?More Ways to Save on . Save up to 35% more.
    new deal for desk.eifcentral.org?More Ways to Save on . Save up to 35% more.
    I need muscle.damakzevki.net and search for and search for .

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a