473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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)
<System.Runtime.Remoting.RemotingException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_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.."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x0471b6a0) array with dims=[48]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x8013150b
_source=<null>
_xptrs=0x00000000
_xcode=0xe0434f4d

[007e] pop ebx
(cordbg) w
Thread 0x220 Current State:Normal
0)*
mscorlib!System.Runtime.Remoting.RemotingConfigHan dler::LoadConfigurationFromXmlFile
+007e [no source information available]
1)
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
machine.config???

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k]
"DbgJITDebugLaunchSetting"=dword:00000002
"DbgManagedDebugger"="cmd /c \"C:\\Program Files\\Microsoft Visual
Studio .NET 2003\\SDK\\v1.1\\Bin\\cordbg.exe\" !a 0x%x !w !ex
c:\\temp\\cordbg.log"


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
0 2716

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sauron | last post by:
Hi all I have created a Service that will listen for incoming requests from client computers and communicate with my .NET remoting objects to send data back. My problem is when I start the...
1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
0
by: Data | last post by:
In my project I want to execute some commands on the remote machine. I am using .Net Remoting to achieve this. My server which is an exe is copied on the remote machine and it receives command from...
5
by: Data | last post by:
In my project I want to execute some commands on the remote machine. I am using .Net Remoting to achieve this. My server which is an exe is copied on the remote machine and it receives command from...
3
by: | last post by:
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server...
0
by: Per Bergland | last post by:
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...
0
by: Dave A | last post by:
When I register a remoting service programmatically things work great but when I register the service using a config file I get the error "Requested Service not found" when invoking a server...
1
by: Piotrekk | last post by:
Hi I have a strange problem. Here is some input data before I describe the problem. 1. RemoteClass (Mathematica) is compiled into dll and put to GAC 2. Server remoting configuration is done by...
14
by: Peter | last post by:
..NET 3.5 I have a Windows Service application and it does remoting, but when a client incounters an error the client get the following error message "Server encountered an internal error....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.