Load .NET 2.0 DLL IN VS2003

G

Guest

Hi Everyone,

Is it possible to have a .NET1.1 application load an object contained in a
dll that is built on .NET2.0?

Specifically I have two 3rd party files... the first is a hosting user
control that loads a dll written in VS2005. However, when I load the DLL I
get a System.BadImageFormatException error, which I realise is because of the
version mismatch. Can I get around this?

As an aside, I've also tried testing this with VB6 and VS2005 and they both
work fine; it's just when I create the project in VS2003 that I get the error.

Any help will be greatly appreciated!

Cheers
Neil
 
M

Mattias Sjögren

Is it possible to have a .NET1.1 application load an object contained in a
dll that is built on .NET2.0?

Yes, if you configure the application to load the 2.0 CLR.


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

Top