I get 'A 32 bit processes cannot access modules of a 64 bit process.' exception invoking Process.Start()

和自甴很熟 提交于 2019-12-01 03:19:39

Choosing Any CPU for Platform target is not enough, you also have to uncheck Prefer 32-bit, otherwise the application will still be run as a 32-bit application.

This is only possible on application projects, not on library project. If your project is a library, you must do it in the project using your library.

After investigation I realized that Logman.exe is unmanaged code, so it cannot return a .NET object as MainModule, so it's a normal behavior. I'ts just slightly confusing error message for Win32Exception. It doesn't influence the execution of Process.Start().

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!