By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,932 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,932 IT Pros & Developers. It's quick & easy.

System.TypeLoadException

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.