Avatar of mgmhicks
mgmhicks
 asked on

How to write to event Log with in my web application

I have tried this code to write to the event log with no success.  Didn't think it would be that easy.  Could someone send me in the right direction.

imports system.diagnostics


 Dim myLog As New EventLog("")
                    myLog.Source = "ResidentPortal"
                    myLog.WriteEntry("Invalid Password Attempt", EventLogEntryType.FailureAudit)
Visual Basic.NETASP.NET.NET Programming

Avatar of undefined
Last Comment
mgmhicks

8/22/2022 - Mon
SOLUTION
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Jacques Bourgeois (James Burger)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Athar Syed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
mgmhicks

ASKER
Didn't end up doing it, but all points were either valid or helpful.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck