Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 10, 2009 04:33 PM by joem123
Dec 03, 2009 06:49 PM|LINK
I'm trying to add a reference to an asp.net website, but after I add it, it doesn't appear in the list of references and doesn't give an error. I tried recompiling the dll and that didn't help. I just recently installed vs 2005 so it may be a set up issue?
I'm running on xp sp2.
Thanks in advance.
Dec 06, 2009 09:05 PM|LINK
You had no problem with other references? What is the reference in question exactly? Have you ever set this reference on another web site successfully before? Please specify.
Dec 07, 2009 05:21 PM|LINK
I am having the same issue with other references of the BIN type, GAC seems ok. I tried adding the ajax extensions dll from the bin and it won't add either. The other dll's are custom components developed in VB compiled to a dll.
More info, I just moved to a new pc at work and copied this website to the new harddrive.
When I create a new project as VB ASP.Net website I can add the reference.
The website having trouble is under a solution file, and I'm thinking it may not be set up the same way as the generic VB ASP.Net website.
Thanks in advance for your help on this.
Dec 07, 2009 05:25 PM|LINK
Sounds like the assembly on the "old" computer was added to the GAC, which could give you issues if you are trying to add it as a local reference. What happens is if you add a reference to project where the assembly exists in GAC, it will reference the
GAC assembly over the local reference.
The fix would be to remove it from GAC on the old machine and add it manually.
Dec 07, 2009 05:31 PM|LINK
On the old machine the reference is of BIN type not GAC. I don't think it was added to the GAC on the old machine, the reference list shows BIN as type for it.
Dec 07, 2009 05:33 PM|LINK
Hmmm sorry, guess I did not read that right. Might seem trivial but did you try a Solution -> Build -> Clean Solution?
Are any of the existing files set to read only?
Also, could it have anything to do with the version of .NET the DLL was compiled in versus the .NET version on the target solution?
Dec 07, 2009 05:42 PM|LINK
What I did to solve similar issues:
Instead of trying to add a reference directly from a source outside of the website:
Dec 07, 2009 05:50 PM|LINK
I only have the Build Solution option available.
None of the DLL's are read-only.
How do I add reference to the website from the bin folder? Do you mean right click to add reference on the bin folder because that's one of the ways I tried to add reference. I tried the menu bar too.
Dec 07, 2009 06:00 PM|LINK
How do I check the .Net version? It's 2.0 but not sure of any build numbers.