allowing access rights to log errors in eventviewer
-
Hi guys How does one change the registry keys to use the eventviewer/logger? thanks
-
Hi guys How does one change the registry keys to use the eventviewer/logger? thanks
To make an entry of your application you first need to make an entry in Registry. To make an entry in registry follow these steps: 1. In the run command of windows type RegEdit. 2. In the screen go to HKEY_LOCAL_MACHINE -> SYSTEM -> CURRENTCONTROLSET -> SERVICES -> EVENTLOG -> APPLICATION 3. Right click on the Application and Then New -> Key 4. Then give the name of your key which you want to use in your application (ie. abcd). 5. Then click on the key you have just created (abcd). 6. In the right hand side pane right click and then New -> StringValue 7. give the name of the string value as "EventMessageFile" (without double quotes). 8. Then double click on the String value and paste this path in ValueData: "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll" (without double quotes"). Bingo :-> !!! now you can use the key name in your application to log the errors in eventviewer. :cool: I hope it is of some help. Deepak Surana aka. ~deeZ