crdx
crdx

Reputation: 1432

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

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?

Upvotes: 8

Views: 234

Answers (2)

Edwin de Koning
Edwin de Koning

Reputation: 14387

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.

Upvotes: 7

Iridium
Iridium

Reputation: 23721

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

Upvotes: 7

Related Questions