Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. allowing access rights to log errors in eventviewer

allowing access rights to log errors in eventviewer

Scheduled Pinned Locked Moved ASP.NET
windows-adminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honeyman_can
    wrote on last edited by
    #1

    Hi guys How does one change the registry keys to use the eventviewer/logger? thanks

    D 1 Reply Last reply
    0
    • H honeyman_can

      Hi guys How does one change the registry keys to use the eventviewer/logger? thanks

      D Offline
      D Offline
      deepaks3
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups