8

When I run my C# application, Visual Studio reports that it has loaded a managed binary with (what looks like) a randomly generated name.

For example:

'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'ehmgcsw7'

or:

'WindowsFormsApplication1.vshost.exe' (Managed): Loaded 'jvo4sksu'

What is this, and why is its name (seemingly) randomly generated?

crdx
  • 1,412
  • 13
  • 26

2 Answers2

7

These are usually the assemblies generated to provide XML (de)serialization functionality when no pre-compiled serialization assembly as been built.

Iridium
  • 23,323
  • 6
  • 52
  • 74
  • Thanks; that was it. I couldn't decide whose to mark as the answer so I did yours, as you answered a whole 7 seconds before Rewinder did. – crdx May 05 '11 at 07:52
7

You are probably using an XmlSerializer somewhere. This might dynamically generate and re-compile code, which in turn results in assemblies with random names that will be loaded. You could step through your code and determine at which point the assemblies are loaded.

Edwin de Koning
  • 14,209
  • 7
  • 56
  • 74