TypeLoadException

  • Thread starter Thread starter :\\\\derian
  • Start date Start date
D

:\\\\derian

Hello All,

I'm attempting to add a c# DLL that uses unmanaged code to my VB project.
When I add the C# DLL to the project and compile, all goes well but when i
hit F5, i get a System.TypeLoadException (could not load type.... from
assembly...) Any ideas?
 
I'm attempting to add a c# DLL that uses unmanaged code to my VB project.

C# doesn't create unmanaged code, perhaps you mean unsafe?

When I add the C# DLL to the project and compile, all goes well but when i
hit F5, i get a System.TypeLoadException (could not load type.... from
assembly...) Any ideas?

The TypeLoadException object should contain more information on which
type it failed to load and possibly also why. Look at that and see if
you can figure it out. If not, please post the exception message here.
Seeing the definition of the type it fails on would also be useful.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top