473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Server 2008 App not logging to event viewer

I cannot get my application to log to the application event viewer in
server '08. it's strange as it works fine on one of my machines, but
not on two others (and all similarly configured, i'm running with
default security enabled on all 3 boxes, ...).

has anyone seen this before?

here's a sample except:

class Program
{
static string _eventSource = "evntSrc1";
static string _logAppName = "ServiceApplication1";
static int eventId = 33;

static void Main(string[] args)
{
if (!EventLog.SourceExists(_eventSource))
{
EventLog.CreateEventSource(_eventSource, _logAppName);
}

EventLog myLog = new EventLog();
myLog.Source = _eventSource;
myLog.WriteEntry("test msg1", EventLogEntryType.Error,
eventId);
}
}

thanks, dave
Oct 16 '08 #1
0 1097

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ravi Shankar | last post by:
Hi all, I have an enterprise application. I am using Apache Log4J for the logging purposes. WHen a request is received by the application, it goes throug servlets and many classes, and the...
2
by: FrodoBaggins | last post by:
Dear Team, I am running Visual Studio 2003 Version 7.1.3088 on Windows Server 2003. I have written a C# application that must write to the event log. When it attempts to write to the event log,...
0
by: Karuppasamy | last post by:
H I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net I installed everything as per the Instructions given in the 'Development Using the Logging Block' ...
0
by: KrystianAntoni | last post by:
Hi We recently transfered our couple webpages/applications from old rig(2xP3 1Ghz) on IIS 5.0 and win2k to a new hardware(2xXeonHT 3Ghz) with IIS6.0 and Win2k3. On the old system everything...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
7
by: Aryan | last post by:
Hi Everybody, I am facing "Server Application Unavailable" problem with .NET Framework 2.0 Earlier Framework was working fine, but one fine day it stopped working for particular application....
3
by: philwilks | last post by:
I have a dedicated server on which I run several ASP.Net 2.0 website. At the moment, each site has an Application_OnError subroutine that is defined in the site's Global.asax file. This writes the...
2
by: Steven Nagy | last post by:
Hi, I have Enterprise Library and am using the Logging Application block successfully to log to the Event log. Currently I can only put enteries into the existing event viewer types...
15
by: Andrew Robinson | last post by:
In the past, I remember all kinds of security related issues when trying to write to the event log but don't remember the specifics. Was there an issue with creating a new source? Can you write...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.