473,545 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OutOfMemoryExce ption loading machine.config at system boot time (RemotingConfig uration.Configu re)

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.Remot ingException>
_className=<nul l>
_exceptionMetho d=<null>
_exceptionMetho dString=<null>
_message=(0x047 1b380) ".Config file
C:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\co nfig\machine.co nfig can not
be read successfully due to exception System.OutOfMem oryException:
Exception of type System.OutOfMem oryException was thrown.."
_innerException =<null>
_helpURL=<null>
_stackTrace=(0x 0471b6a0) array with dims=[48]
_stackTraceStri ng=<null>
_remoteStackTra ceString=<null>
_remoteStackInd ex=0x00000000
_HResult=0x8013 150b
_source=<null>
_xptrs=0x000000 00
_xcode=0xe0434f 4d

[007e] pop ebx
(cordbg) w
Thread 0x220 Current State:Normal
0)*
mscorlib!System .Runtime.Remoti ng.RemotingConf igHandler::Load ConfigurationFr omXmlFile
+007e [no source information available]
1)
mscorlib!System .Runtime.Remoti ng.RemotingConf igHandler::Load MachineConfigIf Necessary
+0091 [no source information available]
2) mscorlib!System .Runtime.Remoti ng.RemotingConf iguration::Conf igure
+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
RemotingConfigu ration.Configur e 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 OutOfMemoryExce ption 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_MACH INE\SOFTWARE\Mi crosoft\.NETFra mework]
"DbgJITDebugLau nchSetting"=dwo rd:00000002
"DbgManagedDebu gger"="cmd /c \"C:\\Progra m Files\\Microsof t Visual
Studio .NET 2003\\SDK\\v1.1 \\Bin\\cordbg.e xe\" !a 0x%x !w !ex
c:\\temp\\cor dbg.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\\Microsof t .NET SDK 1.1 Bin\\Bin\\cordb g.exe
Jul 21 '05 #1
0 2743

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

Similar topics

1
2362
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 Service. I call the RemotingConfiguration.Configure("appname.exe.config") method, but I get a System.IO.FileNotFoundException at that line. The file...
1
4351
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 *ipAddress = S""; IDictionary *server_config = dynamic_cast<IDictionary*>(ConfigurationSettings::GetConfig("ServerAddress") ); ipAddress =...
0
4790
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 client which is executed by the exe. I am facing problem while executing the exe on the remote machine. If I start the exe manually everything...
5
6280
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 client which is executed by the exe. I am facing problem while executing the exe on the remote machine. If I start the exe manually everything...
3
5352
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 2000 as a domain controller with IIS 5 (I know I shouldn't be doing this - just a test machine). I am using the default ASP.NET (v1.1)...
0
308
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 couldn't find any info on how to do this). Here's the stack trace from cordbg: Unhandled exception generated: (0x04719c94)...
0
1854
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 activated object and "Type 'RemotingTest.ClientActivated, RemotableObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not registered for...
1
1459
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 code. //used in case of code configuration TcpChannel channel = new TcpChannel(5000);
14
5577
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. For more information, turn off customErrors in the server's .config file." Where do I turn this off
0
7496
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7428
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7452
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6014
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1916
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.