Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Let me guess... you're running as an x86 application on a 64 bit installation of Windows? I'm not sure of the reason, but <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/050df01f-eb61-49c1-9109-3c1954dcf794" rel="nofollow">this thread</a> provides some information. If you compile it for native 64 bit (or Any CPU I suppose) instead of x86, it'll find the file properly.</p> <p>The reason for this is the System Folder Redirection that's going on in 64bit OS's on applications that are running under WOW64. You can read more about it <a href="http://msdn.microsoft.com/en-us/library/aa384187%28VS.85%29.aspx" rel="nofollow">here</a>. One particularly relevant chunk of that post is talking about how to get around it:</p> <blockquote> <p>Applications can control the WOW64 file system redirector using the <a href="http://msdn.microsoft.com/en-us/library/aa365743%28v=VS.85%29.aspx" rel="nofollow">Wow64DisableWow64FsRedirection</a>, <a href="http://msdn.microsoft.com/en-us/library/aa365744%28v=VS.85%29.aspx" rel="nofollow">Wow64EnableWow64FsRedirection</a>, and <a href="http://msdn.microsoft.com/en-us/library/aa365745%28v=VS.85%29.aspx" rel="nofollow">Wow64RevertWow64FsRedirection</a> functions. Disabling file system redirection affects all file operations performed by the calling thread, so it should be disabled only when necessary for a single CreateFile call and re-enabled again immediately after the function returns. Disabling file system redirection for longer periods can prevent 32-bit applications from loading system DLLs, causing the applications to fail.</p> <p>32-bit applications can access the native system directory by substituting %windir%\Sysnative for %windir%\System32. WOW64 recognizes Sysnative as a special alias used to indicate that the file system should not redirect the access. This mechanism is flexible and easy to use, therefore, it is the recommended mechanism to bypass file system redirection. Note that 64-bit applications cannot use the Sysnative alias as it is a virtual directory not a real one.</p> </blockquote> <p>I was unable to get the <code>%windir%\Sysnative</code> idea working, but I'm hopeful that either that works for you or you can implement the enabling/disabling of redirection.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload