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

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?
 
G

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?

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top