2

Closed

IIRF should not Spam the event log when iirf.ini is missing

description

Running v2.1 on IIS6, installed using the msi.
 
I have a site with a number of applications (virtual directories) in sub directories. The iirf.ini is configured and working correctly in the root of the site.
 
Each request to one of the sub applications generates a warning in the application event log that the iirf.ini file in the virtual directory does not exist. (event ID 3, IIRF: Could not open ini file)
 
IIRF should stop logging this event. In some cases it is impractical for me to add an iirf.ini to every application.

file attachments

Closed Apr 17, 2011 at 7:29 PM by Cheeso
fixed in changesets 85338 (code) and 85343 (doc). First binary release: v2.1.1.26.

comments

Cheeso wrote Feb 23, 2011 at 1:31 AM

Here's what I've done:

added a new directive, for use only within IirfGlobal.ini : EventsForIniOpen . It takes one argument: ON|OFF . By default, it is ON, which means when the open of the ini file fails, there is an event spooled to the Windows Event Log.

Also: if the events are ON, then IIRF will spool only a single event for each ini file, for the lifetime of the worker process, rather than one event per URL request. If you stop and restart IIS, then you will get another event in the event log. This "single event" doesn't happen if EventsForIniOpen is set to OFF.

This feature will be in v2.1.1.26.

Cheeso wrote Feb 23, 2011 at 1:36 AM

Here's an MSI with this feature enabled. Interested in your feedback. No documentation for the new directive yet.

Cheeso wrote Feb 23, 2011 at 1:38 AM

Here's the x64 version of the MSI.

DarkNexusNR wrote Feb 27, 2011 at 2:02 AM

Wasn't able to install the x86 msi on Server 2003 R2 sp2. "You must install the IIS WMI Provider prior to installing IIRF." I reinstalled the current version without any problems.

TCataldo wrote Mar 9, 2011 at 4:52 PM

Nice addition. What is happening in Iirf besides emitting a warning? Should a VDIR load a default ini when a specific VDIR Iirf.ini cannot be found?

Cheeso wrote Mar 9, 2011 at 10:10 PM

Currently IIRF does nothing for a vdir if there is no ini file in the physical dir for that vdir. There is a separate proposal in another workitem to have "global" rules that apply to all vdirs. See http://iirf.codeplex.com/workitem/29906 . But I haven't implemented that yet. I guess it would not be too hard to do, but I haven't prioritized it yet.