Cannot load 64bit CLI/C++ dll in C# project when running in Vista 64bit, .NET 3.5
-
Hi all, Please help me to solve below problem: 1. First, I develop a 32bit application (include C#, VB, C++/CLI, C) in Vista 64bit with .NET framework 3.5, VS 2008. Everything runs ok. a. C++/CLI, C: platform is Win32 b. C#, VB: platform is x86 2. Second, I continue convert above application to 64bit application and also run in Vista 64bit, .NET 3.5, VS 2008. To converting, I change some main point as below: a. C++/CLI: change platform from Win32 to x64, and pointer from 4bytes to 8bytes b. C#, VB: change platform from x86 to Any CPU. Everything builds ok, but when run application, unhandled exception was thrown everytime it call constructor of C++/CLI object: - Message: "System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)" - Stack Trace: " at ProjCS.Form1..ctor() at ProjCS.Program.Main() in N:\test\Test64\ProjCS\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()" I try to re-install VS 2008 and googling but still cannot find solution. Anyone who has experience about problem, please help me to find root cause and solution to solve it. Thanks a lot.
-
Hi all, Please help me to solve below problem: 1. First, I develop a 32bit application (include C#, VB, C++/CLI, C) in Vista 64bit with .NET framework 3.5, VS 2008. Everything runs ok. a. C++/CLI, C: platform is Win32 b. C#, VB: platform is x86 2. Second, I continue convert above application to 64bit application and also run in Vista 64bit, .NET 3.5, VS 2008. To converting, I change some main point as below: a. C++/CLI: change platform from Win32 to x64, and pointer from 4bytes to 8bytes b. C#, VB: change platform from x86 to Any CPU. Everything builds ok, but when run application, unhandled exception was thrown everytime it call constructor of C++/CLI object: - Message: "System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)" - Stack Trace: " at ProjCS.Form1..ctor() at ProjCS.Program.Main() in N:\test\Test64\ProjCS\Program.cs:line 18 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()" I try to re-install VS 2008 and googling but still cannot find solution. Anyone who has experience about problem, please help me to find root cause and solution to solve it. Thanks a lot.