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. Advertising

  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. Advertising

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:
    422
  2. tom
    Replies:
    0
    Views:
    377
  3. MuZZy
    Replies:
    1
    Views:
    350
    Walter Wang [MSFT]
    Nov 9, 2006
  4. Patrick Kramer
    Replies:
    3
    Views:
    361
    Patrick Kramer
    Nov 8, 2005
  5. Tom Felker
    Replies:
    2
    Views:
    120
    Tom Felker
    Jul 1, 2003
Loading...

Share This Page