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.
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.
Please mark this post as "Answer" and earn a point.
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.
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.
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.
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.
joem123
0 Points
8 Posts
adding reference to asp.net website fails without error
Dec 03, 2009 06:49 PM|LINK
Hi,
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.
Joe
thuhue
All-Star
15625 Points
3146 Posts
Re: adding reference to asp.net website fails without error
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.
joem123
0 Points
8 Posts
Re: adding reference to asp.net website fails without error
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.
votek
Member
656 Points
133 Posts
Re: adding reference to asp.net website fails without error
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.
joem123
0 Points
8 Posts
Re: adding reference to asp.net website fails without error
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.
votek
Member
656 Points
133 Posts
Re: adding reference to asp.net website fails without error
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?
lberan
Contributor
4089 Points
1097 Posts
Re: adding reference to asp.net website fails without error
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:
Please mark replies that have helped you as answers.
joem123
0 Points
8 Posts
Re: adding reference to asp.net website fails without error
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.
lberan
Contributor
4089 Points
1097 Posts
Re: adding reference to asp.net website fails without error
Dec 07, 2009 06:00 PM|LINK
Please mark replies that have helped you as answers.
joem123
0 Points
8 Posts
Re: adding reference to asp.net website fails without error
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.