2009-06-12 6 views
0
  1. 작성 방법 Windows 로그 파일에 로그 하시겠습니까? (Windows XP)웹 서비스 및 로그 파일 질문

  2. (웹 서비스에서) 내 웹 서비스 가상 디렉터리를 찾는 방법은 무엇입니까?

감사의 이벤트 로그에 쓰기 미리

+0

1. 로그 파일 또는 이벤트 로그 :

System.Diagnostics.EventLog.CreateEventSource(strMyApp, "Application"); EventLog MyEventLog = new EventLog(); MyEventLog.Source = strMyApp; MyEventLog.WriteEntry(strEvent, EventLogEntryType.Warning); 

가상 디렉토리를 찾기? – Hooloovoo

답변

1
+0

Windows Vista 또는 Windows Server 2008에서 이벤트 소스를 만들면 승격 된 (관리자) 권한으로 실행하지 않으면 작동하지 않을 수 있습니다. 자세한 내용은 http://stackoverflow.com/questions/712203/writing-to-an-event-log-in-asp-net-on-windows-server-2008-iis7/712214를 참조하십시오. –