Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

How to raise a WebBaseErrorEvent or WebManagementEvent

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max2006 - 24 Oct 2007 19:14 GMT
Hi,

We are using ASP.NET 2.0 health and monitoring provider.
I know that the platform raises events automatically.

I just wanted to know how can we raise them in C# code? I am trying to raise
WebBaseErrorEvent or WebManagementEvent.

Thank you,
Max
bruce barker - 24 Oct 2007 21:04 GMT
(new WebRequestEvent("my message",
    null,
    WebEventCodes.WebExtendedbase +1)).Raise();

-- bruce (sqlworkcom)

> Hi,
>
[quoted text clipped - 6 lines]
> Thank you,
> Max
Steven Cheng[MSFT] - 25 Oct 2007 07:12 GMT
Thanks for bruce's input.

Hi Max,

As Bruce suggested, you can simply create the event instance and call
"Raise" method to raise it. Also, it support creating custom event, here
are some articles describing this:

#How To: Use Health Monitoring in ASP.NET 2.0
http://msdn2.microsoft.com/en-us/library/ms998306.aspx#paght000011_step1

#Raising Custom ASP.NET Health Monitoring Events Example  
http://msdn2.microsoft.com/en-us/library/ms227545.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

--------------------
>Date: Wed, 24 Oct 2007 13:04:07 -0700
>From: bruce barker <nospam@nospam.com>
[quoted text clipped - 17 lines]
>> Thank you,
>> Max

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.