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

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

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?
 
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
 
Back
Top