开发者

Response.AppendToLog() doesn't append anything in IIS7, Windows Server 2008

I'm using Response.AppendToLog to 开发者_JAVA百科log custom information to IIS Logs under the cs-uri-query field. The logging is working fine on IIS6 but doesn't do anything on IIS7. Do I need to do anything more to get it to work on IIS7?


The problem was due to incorrect configuration in Web Config for IIS7. Moving the httpmodule section from system.web to system.webserver solved the logging issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜