I am having trouble linking to a secondary class in my project – I have attached 2 images which describe the problem best..
Pleas any advice – I thank you in advance.


This error was two things – thank you everybody for your help.
1) add namespace to DB file
namespace C_Classes
{
using System;
…
public class DB
2) Change Target Framework in the Project Properties and change it to “.Net Framework 4” from “…Client Profile”
I’m assuming you’ve added a Project reference to the C_Classes project?
Otherwise I’ve seen these types of issues when the project is set to target “.Net Framework 4 Client Profile” (which it sometimes sets as the default).
Check your Target Framework in the Project Properties and change it to “.Net Framework 4”.