Can't drag and drop Server Explorer App Event Log to web form?

Discussion in 'ASP .Net' started by Mark, Nov 17, 2009.

  1. Mark

    Mark Guest

    I was trying to drag and drop the Application Event Log from Server Explorer
    to an ASP.NET web form in a Visual Studio 2008, but the drag and drop would
    not create an Eventlog object as my book said it should do. Does anyone
    have an idea why Visual Studio isn't creating an Eventlog object for me?
     
    Mark, Nov 17, 2009
    #1
    1. Advertisements

  2. On Nov 17, 5:40 am, "Mark" <> wrote:
    > I was trying to drag and drop the Application Event Log from Server Explorer
    > to an ASP.NET web form in a Visual Studio 2008, but the drag and drop would
    > not create an Eventlog object as my book said it should do.  Does anyone
    > have an idea why Visual Studio isn't creating an Eventlog object for me?


    As far as I can see this works for WinForms projects only. To work
    with EventLog from ASP.NET simply refer to
    System.Diagnostics.EventLog.

    Here's an example on how to write errors in the log

    http://msdn.microsoft.com/en-us/library/fwzzh56s.aspx
    http://msdn.microsoft.com/en-us/library/07347hdt.aspx

    Hope this helps
     
    Alexey Smirnov, Nov 17, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tom
    Replies:
    0
    Views:
    504
  2. tom
    Replies:
    0
    Views:
    457
  3. MuZZy
    Replies:
    1
    Views:
    439
    Walter Wang [MSFT]
    Nov 9, 2006
  4. Patrick Kramer
    Replies:
    3
    Views:
    553
    Patrick Kramer
    Nov 8, 2005
  5. Daz
    Replies:
    8
    Views:
    695
  6. Drag and Drop controls during runtime in Windows App

    , Dec 1, 2006, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    218
  7. Tom Felker
    Replies:
    2
    Views:
    256
    Tom Felker
    Jul 1, 2003
  8. wreed

    Drag and Drop Tree and Form Submit

    wreed, Apr 11, 2007, in forum: Javascript
    Replies:
    5
    Views:
    541
    wreed
    Apr 17, 2007
Loading...