Last post Jan 20, 2014 05:19 AM by Hariprakash
Jan 17, 2014 02:02 AM|Hariprakash|LINK
I am using forms authentication to authenticate user logging into my application. Once the user gets authenticated successfully, IIS 7.0 logs cs-username field in "Integrated Mode" with logged in username. When I change IIS 7.0 to "Classic Mode", cs-username
field in IIS log is empty. I wrote a custom HTTP Module to add "cs-username" key to every response header with logged in user name as value and registered my custom http module in web.config. Still IIS not logging cs-username field in log ("Classic mode").
Jan 20, 2014 04:38 AM|Fuxiang Zhang - MSFT|LINK
Thank you post the issue to asp.net forum.
According to your description, I understand you want to log cs_username key to IIS log when IIS running Classic Mode.
As we all know that we go through double authentication processes in Classic Mode. IIS authenticates first, and then ASP.NET authenticates.
In classic mode, the IIS Authentication is likely set to anonymous, in which case, IIS will log nothing in that field.
However, in the meantime, there is a relatively painless workaround to get the cs-username field to start logging.
Please follow rblissitt's post in below thread.
Hope this helps, thanks.
Jan 20, 2014 05:19 AM|Hariprakash|LINK
Thanks for the reply. I'm using IIS 7.0 without Advanced Logging enabled. Hence I'm not able to find fields tag in applicationhost.config file. I even tried with other options googled out, but of no luck.