Yesterday was, for a while pretty frustrating moments for me. Because, i had to add a assembly from GAC i.e System.Data.Linq for example: Yea, so whats frustrating you might ask? Well read on.
I was working on .NET 3.5 framework in VS 2008. So as usual, i added a static reference to the assembly from Add Reference dialog of Visual Studio. Then the added assembly started to show an error in the references list as shown below:
I tried googling, i tried asking couple of smart colleagues around and no use. Next, I tried looking for the path of this assembly. I noticed a bit difference in it.
As you can see from the above screen, the assembly what i want does reside in a different path than the normal system core assemblies like System.Data, though it was a bit of surprise to me but i thought thats how its been done by M$. But this made me a bit curious as this path could be making VS to show this error or some registry contents did not got updated or some thing? Oh well, googling, and searching further did not help either, neither could my colleagues spot out the issue.
We tried changing the framework from 3.5 to 2.0 and back again, though it did solve the error, but we could not find why or whats causing this issue, because repeating this use case again did put us in the same unresolved state.
I never knew this small feature was causing the issue though i went through this option earlier. Finally felt a bit relaxed after fixing this mysterious issue 🙂
Hope it was helpful to you. Happy Coding..