Last post Jun 11, 2012 05:57 AM by ladinku
Jun 08, 2012 01:59 AM|Somsubhro|LINK
Hi All, I have a ASP.NET solution project which has sub projects in it and each of the sub-project has the Microsoft out-of-box references to "System", "System.configuration", "System.Core" etc (just as any other normal project would do). I got the code
from one of my team members and when I tried to run it, I see that all these references have a yellow exclamation mark on them.
I tried to fix it by re-referencing them, although referencing the system DLLs does not make sense. Below is a screenshot of what I see.
My code is in .NET Framework 3.5 using Visual Studio 2008 and I am using Windows 7 as the OS (so 3.5 SP1 is a standard component of the OS). I have checked that the .NET Framework 3.5 component is enabled from "Turn Windows features on or off" and they are
I have never seen such any issue before of not being able to reference the system assemblies itself. Can anyone please help, I will really appreciate it.
Jun 08, 2012 11:05 AM|ladinku|LINK
Have you tried to run code from the same person before on your machine? It could just be the path is different on each (although the .NET framework assemblies are in the GAC). Select one of the references, open its properties and check the Path that it
is looking for.
Unless your colleague is running the project in .NET 4. Open the project properties to check what is the target runtime. You might need to change it to 3.5.
Jun 08, 2012 11:11 AM|Somsubhro|LINK
Thanks HTH for your reply. The problem is now solved and it was a little unique. The target framework was 3.5 and the code came to me in a memory device (very funny way!!) and had this problem. When I downloaded the code directly from the source control,
and I rebuilt it, it worked.
Thanks a lot.
Jun 11, 2012 05:57 AM|ladinku|LINK
No probs. Looks like you found the solution by yourself. By the way, HTH means Hope This Helps! :)