‘HttpUtility’ does not exist in the current context

Last couple days working I developed a social networking share control for asp.net


Where i use BitlyApi to shorten my url to send twitter.
There i use BitlyApi class in my App_Code folder . As it is web project so HttpUtility is found from System.Web.dll.
I try to make my SmartSocialShare class library to a dll so i make a new class library .
And paste all my Class file from my App_Code folder in the new Class library project . When i try to build the dll it show this error.

‘HttpUtility’ does not exist in the current context

Then i add System.Web.dll as a reference in my class library then it make my dll without error.
Hopes this will help you to solve this error.

I am Muhammod Arifur Rahman, CEO and founder of Learneveryday.net I worked on asp.net mainly. My second skill language is php and wordpress. I am also work on jquery. I love to work with new problem and feel happy when solve. www.smartdatasoft.com is my own company.

Got something to say? Go for it!