473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Not a valid assembly (Add Reference failure)

When trying to add a reference to a DLL (made with VS2005TS) to a VS2003
project, I receive the following error popup: A reference to
'assemblyname.exe' could not be added. This is not a valid assembly or COM
component. Only assemblies with extension 'dll' and COM components can be
referenced. Please make sure that the file is accessible, and that it is a
valid assembly or COM component.

I have tried Googling for a solution, and I did find an MSDN page
(http://support.microsoft.com/default...1631#appliesto)
that talked about it, but haven't been successful in finding useful info.

One interesting clue as to the problem is that under Selected Components
(inside the VS2003 Add Reference dialog), the Type is listed as "File", not
".Net". Also, I can successfully add the DLL as a reference to the DLL's own
VS2005TS project, just not to VS2003.

Thanks for any wisdom you can impart.

Troy
Dec 16 '05 #1
4 32339
>When trying to add a reference to a DLL (made with VS2005TS) to a VS2003
project,


That's simply not possible. VS2003 is tightly integrated with v1.1 of
the CLR which can't load assemblies compiled for v2.0.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 16 '05 #2
> That's simply not possible. VS2003 is tightly integrated with v1.1 of
the CLR which can't load assemblies compiled for v2.0.


If I understand you correctly, the popup error message (within VS2003) is
actually wrong: the DLL may well be a valid assembly file, it's just not
compatible with .Net 1.1. Correct?

If that is the case it bewilders me as to why VS2003 doesn't just tell me it
can't reference a .Net DLL that is greater than .Net 1.x. Even my Jethro
brain could easily comprehend that message.

Does that mean that VS2003 can't be used to build .Net 2.0 projects? If so,
that's beyond words.

Anyway, thanks for your timely assistance.

Dec 17 '05 #3
>If I understand you correctly, the popup error message (within VS2003) is
actually wrong: the DLL may well be a valid assembly file, it's just not
compatible with .Net 1.1. Correct?
Exactly.

Does that mean that VS2003 can't be used to build .Net 2.0 projects? If so,
that's beyond words.


Correct, you need VS2005 for that.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 19 '05 #4
> Exactly.
Correct, you need VS2005 for that.

Mattias


Thanks again for your time and assistance. It is much appreciated.

Troy
Dec 19 '05 #5

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

Similar topics

1
by: Gary Brewer | last post by:
Hi, I have a Windows Forms application stub (Admin.exe) that runs on a local machine. It loads assemblies from a website programmatically using the Assembly.LoadFrom static method. One of the...
4
by: Cybertof | last post by:
Hello, What is the difference between : - adding a new reference to a namespace within the SolutionExplorer (right click, Add Reference...) - adding a new reference with the 'using' keyword in...
1
by: Kimmo Laine | last post by:
Hi, i have this dummy server which i would like to be a shared assembly: using System; using System.Reflection; using System.Runtime.CompilerServices; namespace MySrv
2
by: Walid Koleilat | last post by:
I have created an assembly and assigned a strong name to it. However I want to reference it from another application and i want its name to appear in the add reference dialog box, I think I should...
3
by: Mark | last post by:
Hello I can successuly install an assembly into the GAC with GacUtil. However I cannot get the assembly to appear in the "VS.Net > Add Reference > .Net tab" (where for example, other assemblies in...
11
by: Mark Olbert | last post by:
I'm running into some oddball behavior that I hope is not by design. When I add a reference (via Add Reference) to the bin folder, some, but not all, of the assemblies referenced by the assembly...
1
by: Vipul Pathak | last post by:
Hi Every one, I am working on deployment of a library. When the library installs on a user's machine, I want that the installed assemblies should get listed in the "Add Reference" (AddRef)...
0
by: PulkitZery | last post by:
Hi everyone, I have created an application using vb.net 2.0 and I need to add reference of this project to our older application which is build in using vb.net 1.1. Now when I try to add the...
1
by: ashish1985s | last post by:
Hello Friends!! I have very starnge proablme when i am adding any dll file in VS 2005 which are downloaded from net than i got erro that Make Sure file is valid assembly or COM Componant... Even...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.