473,508 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.TypeLoadException

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?
Nov 16 '05 #1
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
Nov 16 '05 #2
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
.

Nov 16 '05 #3
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
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1555
by: cody | last post by:
my problem is as follows: abstract class A { abstract Foo(); static Doit() { A = new B(); } }
0
297
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...
1
4687
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...
0
288
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...
2
13626
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...
1
1620
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...
0
1514
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...
0
5301
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...
0
1355
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 =...
1
789
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...
0
7127
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...
0
7391
jinu1996
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...
0
7501
tracyyun
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...
1
5056
isladogs
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...
0
4713
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...
0
3204
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...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
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 ...
0
424
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.