Hi
How to write Log to Windows Log file ? (Windows XP)
How to find the Virtual Directory of my Web service (from the Web service) ?
thank's in advance
Hi
How to write Log to Windows Log file ? (Windows XP)
How to find the Virtual Directory of my Web service (from the Web service) ?
thank's in advance
Writing to event log:
System.Diagnostics.EventLog.CreateEventSource(strMyApp, "Application");
EventLog MyEventLog = new EventLog();
MyEventLog.Source = strMyApp;
MyEventLog.WriteEntry(strEvent, EventLogEntryType.Warning);
Find virtual directory:
http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath.aspx