Hello,
I am trying to disable all logging in IIS Express 7.5, and none of the things I've tried have worked.
I followed the suggestion about adding specific entries to the applicationhost.config, found at the following link:
http://forums.iis.net/t/1180650.aspx
but the suggestions in there did not work for me. And uninstalling the logging module, another suggestion from the link, is definitely NOT an option for my needs (I can't expect clients to do this).
I am starting IIS Express with a custom config file, as follows:
iisexpress /config:"<PathToConfigFile>" /systray:false /apppool:IISExpressAppPool
and this is what I have in the <Sites> section of that config (note that <PATH> and <PORT> are valid values at startup):
<sites>
<site name="AppManager" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="<PATH>" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":<PORT>:" />
</bindings>
</site>
<siteDefaults>
<logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" enabled="false" />
<traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="false" maxLogFileSizeKB="1024 />
</siteDefaults>
<applicationDefaults applicationPool="IISExpressAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>
And further down in the file, I have:
<httpLogging dontLog="true" />
The web site works just fine, but I cannot get IIS Express to stop logging, And in addition to a log text file being created in:
"%IIS_USER_HOME%\Logs"
I also have repeated entries in the system event viewer that look like this:
"The directory specified for caching compressed content C:\WINDOWS\TEMP\iisexpress\IIS Temporary Compressed Files\IISExpressAppPool is invalid. Static compression is being disabled.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp."
I need all of this stuff to go away. Can anyone please help?
Thansksin advance,
Ian