Logging errors from ASP.NET application

G

Guest

Hi everybody,

I have programmed a web application that I want to log exceptions to system
event log.

In order to use it, I needed to manually create an entry to the registry so
that I didn't get a security error.

When an error is logged, the following text is displayed:

"The description for Event ID ( 0 ) in Source ( Database.NET ) 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: "

Indicating that no message is defined for the DLL.

In Visual C++ I used a message file that was compiled using the message
compiler and included inside th application or DLL.

How can I do this in ASP.NET?

Thanks
Jaime
 
S

Scott Allen

Hi Jaime:

One step you can take is register EventLogMessages.dll as the
EventMessageFile for your events. The dll is in the framework
installation directory and basically provides an empty string resource
event IDs, which means the "description for Event ... cannot be found"
message won't show up.
 
G

Guest

Thanks Scott.. that worked!

Scott Allen said:
Hi Jaime:

One step you can take is register EventLogMessages.dll as the
EventMessageFile for your events. The dll is in the framework
installation directory and basically provides an empty string resource
event IDs, which means the "description for Event ... cannot be found"
message won't show up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top