【技术贴,ISAPI,权限】isapi应用,在iis6下写的日志有一部分没有被输出。iis5下还正常的。
好像是WebModuleCreate时就不能输出了,直到WebModuleDestroy时才恢复能输出了。。。。。。。
不知道是不是虚拟目录的权限设置问题?
虚拟目录的设置里就有读写执行的权限设置;
虚拟目录对应的物理目录也有的权限设置。
好像2者都设置了,还是这样。。。。。。。
procedure TWMer.WebModuleCreate(Sender: TObject);
begin
debuglog(format('WebModuleCreate:%.8x',[Integer(sender)]));
end;
procedure TWMer.WebModuleDestroy(Sender: TObject);
begin
debuglog(format('WebModuleDestroy:%.8x',[Integer(sender)]));
end;
完整应该这样的:
2007-08-07 11:04:20.447_StopApp[htDebug.pas]>>>>
2007-08-07 11:04:35.469_<<<<StartAPP
2007-08-07 11:04:35.469_WebModuleCreate:01980DC0
2007-08-07 11:04:35.469_Init[info
2007-08-07 11:04:35.469_closeall:max=1
2007-08-07 11:04:35.479_::Activex.CoInitialize(nil)2
2007-08-07 11:04:35.479_init:max=5,inc=2
2007-08-07 11:04:35.749_Init]
2007-08-07 11:04:59.093_压缩比:305885:54650:72868
2007-08-07 11:05:48.394_WebModuleDestroy:01980DC0
2007-08-07 11:05:48.394_closeall:max=5
2007-08-07 11:05:48.404_Q: 22 R: 22
2007-08-07 11:05:48.404_StopApp[htDebug.pas]>>>>
2007-08-07 11:08:16.456_<<<<StartAPP
2007-08-07 11:08:16.466_WebModuleCreate:01970DC0
2007-08-07 11:08:16.476_Init[info
2007-08-07 11:08:16.476_closeall:max=1
2007-08-07 11:08:16.476_::Activex.CoInitialize(nil)2
2007-08-07 11:08:16.476_init:max=5,inc=2
2007-08-07 11:08:16.647_Init]
2007-08-07 11:08:25.770_压缩比:305885:54652:72872
2007-08-07 11:09:18.165_压缩比:305885:54651:72868
2007-08-07 11:11:03.767_压缩比:305885:54652:72872
2007-08-07 11:12:54.847_压缩比:1540280:228585:304780
2007-08-07 11:13:19.422_压缩比:7518502:995529:1327372
2007-08-07 11:36:02.242_WebModuleDestroy:01970DC0
2007-08-07 11:36:02.242_closeall:max=5
2007-08-07 11:36:02.302_Q: 36 R: 36
2007-08-07 11:36:02.302_StopApp[htDebug.pas]>>>>
不完整的:
2007-08-06 21:07:11.483_<<<<StartAPP
2007-08-06 21:35:13.268_WebModuleDestroy:01B20DC0
2007-08-06 21:35:13.268_closeall:max=5
2007-08-06 21:35:13.268_Q: 15 R: 15
2007-08-06 21:35:13.268_StopApp[htDebug.pas]>>>>
2007-08-07 09:40:56.753_<<<<StartAPP
2007-08-07 11:11:03.099_WebModuleDestroy:01B20DC0
2007-08-07 11:11:03.099_closeall:max=5
2007-08-07 11:11:03.099_Q: 131 R: 131
2007-08-07 11:11:03.099_StopApp[htDebug.pas]>>>>