Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: the type or namespace UI doesnt exist in the namespace

I need to use System.Web.UI in a class library project.

using System.Web.UI;

namespace OnlinePdViewer
{
    public class DisplayPd
    {
    }
}

I get compile error when using System.Web.UI statement:

"The type or namespace name 'UI' does not exist in the namespace in the 'System.Web' are you missing an assembly reference?"

I tried to add the reference System.Web, but COM does not include System.Web dll.

Can you help me figure out this? Thank you..

like image 748
perlynsparks Avatar asked Aug 08 '14 20:08

perlynsparks


1 Answers

My mistake.. I found the answer it is so easy.

Go to Menu Project --> Add Reference --> Chose Framework --> Choose System.Web dll and click OK. Error will be removed

like image 78
perlynsparks Avatar answered Oct 10 '22 12:10

perlynsparks