Problem Referencing a C# Project  
Author Message
Sweeps78





PostPosted: Visual C++ General, Problem Referencing a C# Project Top

Hi,

I'm a newbie at VC++ 2005. I've been developing C# 2.0 and VB 8 applications for about a year and a half now though.

I have a control that I developed in C# 2.0 which references a DLL that I built also using C# 2.0. I have the project which contains the control in the same solution as my VC++ project. I referenced the project that contains the C# control. Everything seems to be working fine, the VC++ app is able to see the control and the class no problem. However, when I try to create an instance of the control in VC++ I get an exception thrown. The error that I get is that it cannot find the DLL that the control references:

Could not load file or assembly 'TROM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Any idea how to solve this I have another project written in C# in this same solution that also references this C# control as a project reference and that one works fine, so I'm lost:(







Visual C++12  
 
 
Sweeps78





PostPosted: Visual C++ General, Problem Referencing a C# Project Top

Uh... never mind, I forgot to set the Copy Local option to TROM to true in my control project.