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. General Programming
  3. .NET (Core and Framework)
  4. Event Logging from Web Services and WebForms

Event Logging from Web Services and WebForms

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialquestionwcfhelplounge
1 Posts 1 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.
  • D Offline
    D Offline
    Danny Rodriguez
    wrote on last edited by
    #1

    Greetings All! My question is (i think pretty straight forward) mainly about logging errors from a web services or a webform. What I would like to do is write to the event log from a web service and/or webform. I have read some of the articles on codeproject on how to do this.. but achieved zero success .. Can anyone help? To further explain what I want to do.. An example web method : [WebMethod] public void someMethod() { try { // soem random code that might throw and exception } catch(Exception e) { // write to event log here } } This is just one example.. There are more ofcourse.. But again if anyone can shed some light on this subject it would be greatly appreciated! Regards, Daniel Rodriguez

    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