public class Connection { public static string GetConecction() { return ConfigurationManager.ConnectionStrings[\"DCAssetEntities\"].ConnectionString;
You need to mark the constructor as public (or internal).
public
internal