Answered by:
Solution Reference Problems

Question
-
I have a C# solution using 4 C# library projects and one Website project. I've used Nettiers to generate my BLL and DAL.
Here's the problem: In my website project, I've attempted to make a reference to my Entities project (business layer), but it will inform me that "a reference to Entities.dll already exists".
This error comes up everytime, whether I'm creating a solution from scratch, a brand new website, etc. I've attempted the following (that I can recall):- manually delete the files both from visual studio and the hard disk.
- I've tried searching through the Nettiers architecture to see why this could be automatically be inserted, but I've found no clue.
- I've added a reference directly to the DLL instead of the project with no luck.
- I've given full access rights to everyone
- I've deleted all other instances of this entities .dll on my hard disk
- I've started over from scratch ( solution and website ) multiple times. This reference error occurs the very first time I try to add a reference to an empty website project
The workaround of this problem is that I have to fully type out the namespace in my Website project (i.e. //companyname//.Entities.//procedurename). This is taking place all over, but it seems to be referencing the updated dll somehow
If anyone has a suggestion on how to get this reference to work, it would be greatly appreciated.
Thanks!
Friday, August 22, 2008 4:20 PM
Answers
-
Hi,
What if you deleted your shadow cache?
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*
Joe
Free C# Tutorial @ http://www.csharp-station.com- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
- Marked as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
Sunday, August 24, 2008 2:02 AM -
Let's start back at the beginning and work our way through this issue one step at a time. Firstly can you clarify the layout of your projects. You mentioned that you have 4 library projects. I suspect one is BLL and one is DAL. What are the others? What references does each one have beyond the standard assemblies? We're ignoring the website for the moment.
Michael Taylor - 8/25/08
http://p3net.mvps.org- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
- Marked as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
Monday, August 25, 2008 2:48 PMModerator
All replies
-
Hi,
What if you deleted your shadow cache?
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*
Joe
Free C# Tutorial @ http://www.csharp-station.com- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
- Marked as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
Sunday, August 24, 2008 2:02 AM -
Let's start back at the beginning and work our way through this issue one step at a time. Firstly can you clarify the layout of your projects. You mentioned that you have 4 library projects. I suspect one is BLL and one is DAL. What are the others? What references does each one have beyond the standard assemblies? We're ignoring the website for the moment.
Michael Taylor - 8/25/08
http://p3net.mvps.org- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
- Marked as answer by Michael Sun [MSFT]Microsoft employee, Moderator Wednesday, August 27, 2008 3:28 AM
Monday, August 25, 2008 2:48 PMModerator