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. COM
  4. File Not found calling C# COM assembly from C++ [modified]

File Not found calling C# COM assembly from C++ [modified]

Scheduled Pinned Locked Moved COM
c++csharpdotnetvisual-studiocom
1 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.
  • J Offline
    J Offline
    JakeWyman
    wrote on last edited by
    #1

    I have a c++ unmanaged code (ATL/WTL) from which I need to consume a c# assembly with a CCW (Com Callable Wrapper) Exporting the c# side for COM is straight forward, and when I import it at design time it imports fine and my .tlh file is generated correctly... However when I try to CoCreateInstance at runtime I get 1 of 2 errors.. Either "Class not registered" or "File Not Found" I have run RegAsm on the assembly, with /codebase switch. I have also tried nocodebase switch. The C# assembly is in the same path as my c++ DLL. I have tried it in the path of the parent exe and system32. I have also tried strong naming the file and using GACUTIL to put it in the GAC. Each time, RegAsm goes fine, I check the registry and it all looks ok, but I continually get the "File Not Found" Hresult from CoCreateInstance... In addition to this info... This was working great with VS 2003, but I have recently upgraded to VS2005 and this has started to happen when I did that upgrade. Any ideas?:^) Jake- -- modified at 7:32 Saturday 8th July, 2006

    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