user3659259
user3659259

Reputation: 41

The type or namespace name 'Controls' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)

I have a C#(.NET Project) targetted to VS2008 and .net framework 2.0.When i Compile the project i am getting the above error.So,kindly give some suggestions on how to resolve this error.

Namespaces Used:

using System;

using System.Collections;
//using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows;
//using System.Windows.Controls;

using System.Windows.Controls.Control;
using System.Windows.Forms;

Regards, Ranjan VijayKumar.

Upvotes: 4

Views: 6145

Answers (1)

Hassan
Hassan

Reputation: 5430

If you refer to MSDN you will notice System.Windows.Controls is not supported by Microsoft .Net Framework 2.0.

MSDN Reference.

enter image description here

Upvotes: 2

Related Questions