An unhandled exception of type 'System.TypeLoadException'
occurred in TDB_CPPInterface.exe
Additional information: Could not load type TDS2.IEffect
from assembly TDB_CPPInterface, Version=1.0.1407.25783,
Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a
function declared in a unmanaged project from my managed
C++ application. The excetion comes before the function
that references the unmanaged function loads, because I
put a breakpoint and the debugger doesn't stop. The
unmanaged project is marked as a dependency of the main
VC++ .NET App.
What am I doing wrong? 3 6373
Isaac, An unhandled exception of type 'System.TypeLoadException' occurred in TDB_CPPInterface.exe
Additional information: Could not load type TDS2.IEffect from assembly TDB_CPPInterface, Version=1.0.1407.25783, Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a function declared in a unmanaged project from my managed C++ application. The excetion comes before the function that references the unmanaged function loads, because I put a breakpoint and the debugger doesn't stop. The unmanaged project is marked as a dependency of the main VC++ .NET App.
What am I doing wrong?
Might you be running into something similar to this? http://www.winterdom.com/mcppfaq/archives/000262.html
(well, not using common controls, but the forward declaration thingie)
--
Tomas Restrepo to****@mvps.org
Thank you, it seems to work. But the code remains a bit
ofuscated. I'm sure there is a "microsoft's" way to
handle this.
Thanks Tomas.
Isaac. -----Original Message----- Isaac,
An unhandled exception of
type 'System.TypeLoadException' occurred in TDB_CPPInterface.exe
Additional information: Could not load type
TDS2.IEffect from assembly TDB_CPPInterface, Version=1.0.1407.25783, Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a function declared in a unmanaged project from my
managed C++ application. The excetion comes before the function that references the unmanaged function loads, because I put a breakpoint and the debugger doesn't stop. The unmanaged project is marked as a dependency of the main VC++ .NET App.
What am I doing wrong? Might you be running into something similar to this? http://www.winterdom.com/mcppfaq/archives/000262.html (well, not using common controls, but the forward
declaration thingie) -- Tomas Restrepo to****@mvps.org
.
Isaac, Thank you, it seems to work. But the code remains a bit ofuscated. I'm sure there is a "microsoft's" way to handle this.
Well, if it is, they haven't told me yet :)
--
Tomas Restrepo to****@mvps.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: cody |
last post by:
my problem is as follows:
abstract class A
{
abstract Foo();
static Doit()
{
A = new B();
}
}
|
by: Softer |
last post by:
Hi
I have been installed Longhorn, alfa version from PDC 2003. I tryed to install Visual Studio 8.0 "Whidbey", version Beta March 2004, under Longhorn and doesen't work. :
I instaled Whidbey under...
|
by: DC |
last post by:
Hi,
I am programming a windows service and all went well until I needed to
use a simple array of chars which I initialize like this:
char test = new char {'\x002F', '\x005E'};
Immediatly...
|
by: Paul |
last post by:
Hi all
I am struggling to get my FIRST Project, which basically call a C# DLL inside my VC++ exe. Inside my C#DLL which I created, it references to one external COM object
I added my C# DLL as...
|
by: Eli Block |
last post by:
When getting a type from a dynamically loaded assembly using
Assembly.GetType, I receive the following exception:
An unhandled exception of type 'System.TypeLoadException' occurred in...
| |
by: @ndre |
last post by:
Any type declaration of double leads to a TypeLoadException when run in
cf (no compilation error), i.e. cf = reduced c# set??? see example below
comments?
@ndre
this compiles with cf, but give...
|
by: Dmitry Shuklin |
last post by:
I make __value type with some private fields. I want to implement
System.ISerializable for custom serialization
public __value struct NativeHandle : public...
|
by: phillip |
last post by:
This is interesting, I have attached my web.config file and the
exception I have been logging. I created a library which provide data
access to a database and a control system. The library is...
|
by: Pierre-Alain Vigeant |
last post by:
Hi,
I'm getting a TypeLoadException inside an object that is located in a DLL
that is dynamically loaded.
I have this main program "main.exe" that dynamically load "main.dll" using
o =...
|
by: Tom |
last post by:
Having some trouble with my assembly running another assembly, and I am
starting to suspect this may be a windows bug or a framework bug.
Everything works fine on my development workstation (XP...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |