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

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

For example:

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

or

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

What is it and why is its name (seemingly random) generated?

+8
c # visual-studio managed
source share
2 answers

These are typically assemblies generated to provide XML (de) serialization functionality when a serialization assembly assembly has not been created.

+7
source share

You are probably using XmlSerializer. This can dynamically generate and recompile code, which in turn leads to crashes with random names to be loaded. You can go through your code and determine at what point the assemblies load.

+7
source share

All Articles