473,597 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application error in event log

I have an application where I added a comment as the first line of my Config
file, as I found out I can't do this. However, an entry was made in the
event log about the error (Source = .net Runtime):

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event: .NET
Runtime version 1.1.4322.2032- WincommCaptureP urge.exe - Common Language
Runtime Debugging Services: Application has generated an exception that
could not be handled.

The above is the error I got when I ran the app, I do not have admin rights
on the machine. At some point I got one of our network admins to run the app
and the following is what he got for the error (Source = Application Name
(which means my try/catch wrote the error out) ):

Error loading XML file file:///D:/WincommDFS/Landstar/Applications/Wincomm
Capture Purge/WincommCaptureP urge.exe.config The XML declaration is
unexpected. Line 2, position 3. (D:\WincommDFS\ Landstar\Applic ations\Wincomm
Capture Purge\WincommCa pturePurge.exe. config)

Once removing the comment I was able to run the app, which at a later time
failed due to a security right on a directory, the application was able to
write that error to the event log.

As far as I can tell the install of the frame work is very much a default
install, running on 2003 server.

Why the difference in errors? Why wouldn't the app written the invalid xml
error when I ran it? is there something I need to set up in the framework to
allow for the errors to be the same no matter who runs the app?

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein
Nov 17 '05 #1
2 5514
Hi,

The app.config/web.config file are loaded by default by the image, this
image is compiled by the .NET the first time that you load the assembly, at
that point the config file is loaded so there is no exception handling
available at that stage. This means that the image compilation failed. You
can not alter at runtime the config file (upon there are functions like
Add/Delete, they don' work and is considered bad practice)

Hope this helps to understand
Salva
"Wayne" wrote:
I have an application where I added a comment as the first line of my Config
file, as I found out I can't do this. However, an entry was made in the
event log about the error (Source = .net Runtime):

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event: .NET
Runtime version 1.1.4322.2032- WincommCaptureP urge.exe - Common Language
Runtime Debugging Services: Application has generated an exception that
could not be handled.

The above is the error I got when I ran the app, I do not have admin rights
on the machine. At some point I got one of our network admins to run the app
and the following is what he got for the error (Source = Application Name
(which means my try/catch wrote the error out) ):

Error loading XML file file:///D:/WincommDFS/Landstar/Applications/Wincomm
Capture Purge/WincommCaptureP urge.exe.config The XML declaration is
unexpected. Line 2, position 3. (D:\WincommDFS\ Landstar\Applic ations\Wincomm
Capture Purge\WincommCa pturePurge.exe. config)

Once removing the comment I was able to run the app, which at a later time
failed due to a security right on a directory, the application was able to
write that error to the event log.

As far as I can tell the install of the frame work is very much a default
install, running on 2003 server.

Why the difference in errors? Why wouldn't the app written the invalid xml
error when I ran it? is there something I need to set up in the framework to
allow for the errors to be the same no matter who runs the app?

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute. But
let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Nov 17 '05 #2
Two things,

1) that still doesn't explain the difference in the error message
2) when I put the comment in the config file in dev and run the app in the
IDE an exception of not being able to load the config isn't thrown till I
try to read a value from the config. So I'm thinking the config file isn't
loaded at start up but rather when you try to access it for the first time.
Wayne
"Salvador" <Sa******@discu ssions.microsof t.com> wrote in message
news:59******** *************** ***********@mic rosoft.com...
Hi,

The app.config/web.config file are loaded by default by the image, this
image is compiled by the .NET the first time that you load the assembly, at that point the config file is loaded so there is no exception handling
available at that stage. This means that the image compilation failed. You
can not alter at runtime the config file (upon there are functions like
Add/Delete, they don' work and is considered bad practice)

Hope this helps to understand
Salva
"Wayne" wrote:
I have an application where I added a comment as the first line of my Config file, as I found out I can't do this. However, an entry was made in the
event log about the error (Source = .net Runtime):

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ..NET Runtime version 1.1.4322.2032- WincommCaptureP urge.exe - Common Language
Runtime Debugging Services: Application has generated an exception that
could not be handled.

The above is the error I got when I ran the app, I do not have admin rights on the machine. At some point I got one of our network admins to run the app and the following is what he got for the error (Source = Application Name (which means my try/catch wrote the error out) ):

Error loading XML file file:///D:/WincommDFS/Landstar/Applications/Wincomm Capture Purge/WincommCaptureP urge.exe.config The XML declaration is
unexpected. Line 2, position 3. (D:\WincommDFS\ Landstar\Applic ations\Wincomm Capture Purge\WincommCa pturePurge.exe. config)

Once removing the comment I was able to run the app, which at a later time failed due to a security right on a directory, the application was able to write that error to the event log.

As far as I can tell the install of the frame work is very much a default install, running on 2003 server.

Why the difference in errors? Why wouldn't the app written the invalid xml error when I ran it? is there something I need to set up in the framework to allow for the errors to be the same no matter who runs the app?

--
Thanks
Wayne Sepega
Jacksonville, Fl

Enterprise Library Configuration Console Module Generator
http://workspaces.gotdotnet.com/elccmg

"When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour.
That's relativity." - Albert Einstein

Nov 17 '05 #3

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

Similar topics

5
4655
by: VinnieT | last post by:
I have a load balanced system that consists of 3 production servers. There are about 20 different applications that are used on these boxes. One of my applications in particular is used more than the others. Since updating 2 applications, I have had problems on the event log of the servers, following stopping of the aspnet_ws.exe process. Something is causing the following error in the windows application event log: The description for...
0
1396
by: Umair Ahmed | last post by:
Hi, I m developing a web application on Win2k platform and deploying the application on Win2k platform. I didnt get any error on the development machine but when i deployed to any machine on wch only .NET framework 1.o is installed it gives the following error Server Application Unavailable The web application you are attempting to access on this
9
647
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1 application. I use W2K SP4 and have applied the hot Fix KB824146 and KB824105, both IE fixes. I don't have VS installed because this is a Quality Environment. I do have .NET SDK and .NET 1.1 Runtime installed. I can't change my APSNET user to run as...
1
2852
by: Robert Halford | last post by:
On 4th May at 7.45 in the evening my asp.net web sites stopped working on my development server. The page that appears says: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
0
1886
by: bruce | last post by:
ASP.NET app running for about a year with no problem and suddenly this week it's giving error message. The same as the one decribed by another user. Even stranger is that we only have this problem from some web clients (desktop browser, IE) , some other people do not have problems at all from theirs desktop. Also, some clients can access the web app but some can't! Some can use IE but not Netscape, some can't with both, but there are...
1
2444
by: whitehorse | last post by:
When the warehousecontroller service is invoked, the following error message is sent to the application log: Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000 Date: 4/14/2006 Time: 2:41:08 PM User: N/A
2
4553
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the site works fine, i can do anything it is supposed to do) I have the following setup: -Windows 2003 x64 (fully patched, clean install) -Dotnetframework 2.0.50727 -Dotnetnuke 4.3.1
4
2170
by: David Lozzi | last post by:
Howdy, I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel and Geoffrey LeBlond. Anyway, they have some instructions on how to setup application level error handling. Most of my functions have try..catch to email me about an error, then I want the application level to fire off to send the user to a custom page AND log it in the app log. When an error occurs on my page, i get a server error Server Error in...
17
4868
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both Microsoft .Net 1.1 & 2.0 installed. How do I remedy this error? //Error below Server Application Unavailable The web application you are attempting to access on this web server is
0
2003
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on different machines. - domain ASPNET account that handles the function/permissions of the (traditionally) local machine ASP.NET account.
0
7959
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7883
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8263
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
6677
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5421
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3917
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2393
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
1
1492
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1226
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.