CSDN博客

img yanlixin4csdn

关于web服务写日志的费话

发表于2004/6/30 14:33:00  954人阅读

关于web服务写日志的费话,写日志进可能进示没有权限,得修改注册表,具体位置在
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog



EventLog myLog = new EventLog();
myLog.Log = "分布式应用程序";
myLog.Source = "闫力昕";

相应的注册表修改为
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog分布式应用程序闫力昕

 

注示中的内容存成一个reg文件,双击即可!
/**
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序]
"CustomSD"="O:BAG:SYD:(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)"
"Sources"=hex(7):79,98,ee,76,a1,7b,06,74,00,00,4b,6d,d5,8b,00,00,57,00,65,00,/
  62,00,53,00,65,00,72,00,69,00,63,00,65,00,00,00,43,00,6f,00,6d,00,6d,00,6f,/
  00,6e,00,44,00,61,00,74,00,61,00,53,00,65,00,74,00,00,00,41,00,63,00,63,00,/
  65,00,73,00,73,00,53,00,74,00,6f,00,72,00,64,00,50,00,72,00,6f,00,63,00,65,/
  00,64,00,75,00,72,00,65,00,00,00,06,52,03,5e,0f,5f,94,5e,28,75,0b,7a,8f,5e,/
  00,00,00,00

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序/AccessStordProcedure]
"EventMessageFile"="C://WINDOWS//Microsoft.NET//Framework//v1.1.4322//EventLogMessages.dll"

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序/CommonDataSet]

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序/WebSerice]
"EventMessageFile"="C://WINDOWS//Microsoft.NET//Framework//v1.1.4322//EventLogMessages.dll"

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序/测试]
"EventMessageFile"="C://WINDOWS//Microsoft.NET//Framework//v1.1.4322//EventLogMessages.dll"

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/分布式应用程序/项目管理]

**/

0 0

相关博文

我的热门文章

img
取 消
img