cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sbrown
Level 6

findallfiles can't find applicationhost.config

I have a Installscript MSInstaller. I use the appsearch function to find applicationhost.config. Then I try to modify it with fileGrep but it returns file not found.

In the attached screenshot FindAllFiles is returning filenotfound.

Any ideas??
Labels (1)
0 Kudos
(1) Reply
sbrown
Level 6

Found it from: http://forums.iis.net/t/1150832.aspx
This happens because VS2008 is a 32-bit binary and so when you try to open %windir%\system32\inetsrv with VS2008, the file-system redirection for 32-bit binaries on x64 OS kicks in and you actually end up opening %windir%\syswow64\inetsrv and there is no config directory or applicationhost.config file in there.

I added Disable(WOW64FSREDIRECTION);
before the code and
Enable(WOW64FSREDIRECTION); at the end.
0 Kudos