Assembly Error!!

V

Vai2000

Hi All, I have a .net 2.0 assembly which uses generic etc...If I try to add
it into my other project [vs.net 1.0] on a different machine which just has
1.0 framework installed, it throws error saying !!

"A reference to the foo.dll couldn't be added. This is not a valid assembly
or a COM Component. Only assemblies with extension dll and COM Components
can be referenced"

How do I rectify this solution, I have to use this in my 1.0 framework
Project


TIA!
 
D

Dustin Campbell

A .NET 2.0 assembly cannot be loaded under framework 1.0 or 1.1. The 1.0/1.1
..NET runtime simply has no way to understand it.

Best Regards,
Dustin Campbell
Developer Express Inc
 
J

Jianwei Sun

Vai2000 said:
Hi All, I have a .net 2.0 assembly which uses generic etc...If I try to add
it into my other project [vs.net 1.0] on a different machine which just has
1.0 framework installed, it throws error saying !!

"A reference to the foo.dll couldn't be added. This is not a valid assembly
or a COM Component. Only assemblies with extension dll and COM Components
can be referenced"

How do I rectify this solution, I have to use this in my 1.0 framework
Project


TIA!

1> Install 2.0 framework on that machine.
2> Only use .Net 1.0 features in your dll, and use .Net 1.0 compiler to
compile it.
3> I will be surprised if somebody comes out the third choice.

HTH.
 

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