Iirf unexpectedly stopped working

Topics: Developer Forum, User Forum
Sep 26, 2011 at 1:36 PM

Recently I've installed iirf.
iirf was working correctly.
2 day's ago, iirf has stopped to work at all.

This is the report from the event viewer:

Impossibile trovare la descrizione dell'ID evento ( 3 ) nell'origine ( Ionic Isapi Rewriting Filter ). Il computer locale potrebbe non disporre delle necessarie informazioni nel Registro di sistema o dei file DLL necessari per visualizzare messaggi da un computer remoto. Utilizzare /AUXSOURCE= flag per recuperare la descrizione. Per ulteriori informazioni, consultare la Guida in linea e supporto tecnico. Le seguenti informazioni sono parte dell'evento: IIRF: event ID 3; IIRF: Could not open ini file 'C:\Inetpub\Webs\senaf.local\Iirf.ini' (error: 13, Dati non validi.).

The file 'C:\Inetpub\Webs\senaf.local\Iirf.ini' exists and it is readable.

The output of iirfStatus is:

IIRF Global Status
IIRF Version    Ionic ISAPI Rewriting Filter (IIRF) x86 RELEASE
Built on    Aug 17 2011 09:58:52
Filter DLL    C:\Programmi\Ionic Shade\IIRF 2.1\IIRF.dll
PCRE Version    8.02 2010-03-19
IIRF Started    2011/09/26 14:06:25 ora legale Europa occidentale
Current time    2011/09/26 14:06:25 ora legale Europa occidentale
Server Ini file    C:\Programmi\Ionic Shade\IIRF 2.1\IirfGlobal.ini
Last Update of Ini    2011/01/03 13:28:58 ora legale Europa occidentale
  #Lines    66
  #Warnings    0
Rewrite Engine (all vdirs)    ON

IIRF Vdir Status
APPL_MD_PATH    /LM/W3SVC/1333865863/Root
Root Vdir Ini File    C:\Inetpub\Webs\senaf.local\Iirf.ini
Ini file timestamp    2011/09/26 12:36:13 ora legale Europa occidentale
  Last read    2011/09/26 14:06:25 ora legale Europa occidentale
  #Ini Modules    0
  #Lines    0
  #Rules    0
  #Warnings    0
  #Errors    0
Log file    (none)
Log level    1
Rewrite Engine    ON
Rewrite Base    '--'
Remote Status Inquiry    disabled
Cond substring flag    *
Case conversion flag    #
URL Decoding    ON
Iteration Limit    8
Proxy Timeouts (sec.)    Resolve=30 Connect=30 Send=30 Receive=30
#Requests Processed    1


The content of Iirf.ini is:

RewriteLog C:/senaf/web/application/logs/rewrite.log
RewriteLogLevel    2

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|js|css|images|robots\.txt|system)
RewriteRule ^(.*)$ /index.php$1 [L]


The content of IirfGlobal.ini is:

RewriteFilterPriority HIGH
NotifyLog OFF
RewriteEngine ON

Nothing is written into the RewriteLog File "C:/senaf/web/application/logs/rewrite.log".
I've try to "repair" the installation from the Iirf2.1-x86.msi
Seemed to be all right, but looking to the "event viewer":

Product: Ionic's ISAPI Rewrite Filter 2.1 -- Configuration failed.

So i have tried to uninstall and reinstall iirf.
Nothing was changed!
What's wrong?



Oct 2, 2011 at 11:07 PM

Hi Marina,

I don't know the problem, but it does not appear to be a problem with IIRF *installation*.  It appears to simply be a problem reading the INI file.

IIRF uses the windows library fopen_s() to open and read the iirf.ini file. it appears that fopen_s() is returning 13. I don't know the exact conditions under which errno = 13 is returned by fopen_s() , but I think it may indicate a permnissions error.

You can check that with a tool like icacls.exe . Open a command prompt, cd to the appropriate directory and run a command "icacls.exe  iirf.ini"  and report the results here.

The permissions should allow IIS to read that ini file.