467,916 Members | 1,288 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,916 developers. It's quick & easy.

OutOfMemoryException loading machine.config at system boot time (RemotingConfiguration.Configure)

After many woes, I finally managed to get a stack dump of my System
Service (written in C#) that insists on crashing when launched at system
boot time (see below on how to get this dump - I couldn't find any info
on how to do this).
Here's the stack trace from cordbg:

[thread 0x220] Unhandled exception generated: (0x04719c94)
_message=(0x0471b380) ".Config file
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\ machine.config can not
be read successfully due to exception System.OutOfMemoryException:
Exception of type System.OutOfMemoryException was thrown.."
_stackTrace=(0x0471b6a0) array with dims=[48]

[007e] pop ebx
(cordbg) w
Thread 0x220 Current State:Normal
mscorlib!System.Runtime.Remoting.RemotingConfigHan dler::LoadConfigurationFromXmlFile
+007e [no source information available]
mscorlib!System.Runtime.Remoting.RemotingConfigHan dler::LoadMachineConfigIfNecessary
+0091 [no source information available]
2) mscorlib!System.Runtime.Remoting.RemotingConfigura tion::Configure
+0009 [no source information available]
3) (my application)
I've had problems with starting remoting from system services before and
I've actually stopped using it because I couldn't get it to start up
successfully, but I must have left a call to
RemotingConfiguration.Configure somewhere in my code. Is this a case of
my service actually depending on another service. If so, which one would
that be and why is it causing an OutOfMemoryException when loading

Per Bergland
Carmenta AB

PS. Here's how to get a postmortem log from a .NET app. Should be in the
faq somewhere

Windows Registry Editor Version 5.00

"DbgManagedDebugger"="cmd /c \"C:\\Program Files\\Microsoft Visual
Studio .NET 2003\\SDK\\v1.1\\Bin\\cordbg.exe\" !a 0x%x !w !ex

In my case I just installed the .NET 1.1 SDK, so the path to cordbg is
was actually something like
C:\\Program Files\\Microsoft .NET SDK 1.1 Bin\\Bin\\cordbg.exe
Jul 21 '05 #1
  • viewed: 2333

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.