473,406 Members | 2,549 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.

EventLogWebEventProvider


Hi,

Can I have EventLogWebEventProvider published event log entries as error
with red icon? (it publishes them as warning with yellow icons by default)

I also like EventLogWebEventProvider to publish entries to a separated
category node within event viewer's left hand side group tree. (It uses
application group by default) Is that possible?

Thank you,
Max
Jul 27 '07 #1
2 1579
Hi Max,

Regarding on the EventLogWebEventProvider, I have performed some
investigation on it and it seems the underlying EventLog writing code is
encapsulated in a unamanged API (called in EventLogWebEventProvider through
PInvoke). e.g.

=====the code from reflector=========
.......................
}
}
int num = UnsafeNativeMethods.RaiseEventlogEvent((int) type, (string[])
dataFields.ToArray(typeof(string)), dataFields.Count);
if (num != 0)
{
throw new HttpException(SR.GetString("Event_log_provider_err or",
new object[] { "0x" + num.ToString("X8", CultureInfo.InstalledUICulture)
}));
}
}
====================

So far I'm afraid the built-in properties can not customize this behavior.
If you do need to change the output eventlog entry's level, I think one
possible approach is writing a custom EventLogProvider and call your own
unmanaged API to write EventLog.

#How to write to an event log by using Visual C#
http://support.microsoft.com/kb/307024

http://msdn2.microsoft.com/en-us/library/k00ce235.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 30 '07 #2
Hi Max,

Do you have any further questions on this thread? If so, please feel free
to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 2 '07 #3

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

Similar topics

1
by: Bird | last post by:
Hi, By default, EventLogWebEventProvider is enabled. Can I disable it? (to avoid events written to Windows Event Log) Thanks!
2
by: brent.adkisson | last post by:
I am trying to use the ads web starter kit with sql2000. I have migrated the database and all of the .net membership tables to my database. I can connect and see the data through the visual web...
0
by: David Lozzi | last post by:
Howdy, I'm working on some error handling for my application. Currently on WinXP Pro SP2. Basically this is what I'm doing: Try...Catch at the method level, Catch sends email with error ...
0
by: Michael | last post by:
How to set Application Source in EventLogWebEventProvider? If the answer is "create a custom provider" could anyone explain why did MS make such an architecture?
1
by: Max2006 | last post by:
Hi, We are using EventLogWebEventProvider. All events within the event log viewer appear as : Type=Warning Source= ASP.NET 2.0.50727.0 Category= Web Event Is there any way to customize...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.