title: I get 'A 32 bit processes cannot access modules of a 64 bit process.' exception invoking Process.Start()
body: <p>Here is the code sample</p>
  <pre><code>var startInfo = new ProcessStartInfo
  {
      Arguments = commandStr,
      FileName = @&quot;C:\Windows\SysWOW64\logman.exe&quot;,
  };
  
  using (var createCounterProc = new Process { StartInfo = startInfo })
  {
      createCounterProc.Start();
      createCounterProc.WaitForExit();
  }
  </code></pre>
  <p>After running the code I get &quot;A 32 bit processes cannot access modules of a 64 bit process.&quot; message in MainModule (NativeErrorCode:299). My solution is configured to AnyCPU. I've tried both 64 and 32 bit versions of logman.exe (C:\Windows\SysWOW64\logman.exe and C:\Windows\System32\logman.exe) but I still have the same error. My OS is Win8.1Prox64. What could cause the problem?</p>
  <p>Stack trace:</p>
  <blockquote>
  <pre><code>at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)
     at System.Diagnostics.NtProcessManager.GetFirstModuleInfo(Int32 processId)
     at System.Diagnostics.Process.get_MainModule()
  </code></pre>
  </blockquote>
  <p>Here is the Build configuration:</p>
  <p><img src="https://i.stack.imgur.com/I0DT6.png" alt="build settings dialog" /></p>