11

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.

1 Answer 1

22
  1. Select the 'Project' menu option
  2. Select 'Add Reference'
  3. Select 'Framework'
  4. Find and check the checkbox next to the 'System.Web' DLL and select OK.

The error will be removed.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.