Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Cannot load 64bit CLI/C++ dll in C# project when running in Vista 64bit, .NET 3.5

Cannot load 64bit CLI/C++ dll in C# project when running in Vista 64bit, .NET 3.5

Scheduled Pinned Locked Moved Managed C++/CLI
csharphelpc++dotnetvisual-studio
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    ndkit
    wrote on last edited by
    #1

    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.

    N 1 Reply Last reply
    0
    • N ndkit

      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.

      N Offline
      N Offline
      ndkit
      wrote on last edited by
      #2

      Hi everybody, Please take you time to help me. Currently, I must solve it as soon as possible!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups