Missing assembly reference error in web application in VS2008
<p>I have a page called ProfileInfo.aspx and the codebind looks like this - </p>

<pre><code>            using System;
            using System.Web;

            namespace myservice
            {
                public partial class ProfileInfo : System.Web.UI.Page
                {
                    protected void Page_Load(object sender, EventArgs e)
                    {

                        // if no postback but user is authenticated, grab info from database
                        if (!IsPostBack)
                        {
                            if (System.Web.Profile.**IsAnonymous** == false)
                            {

                            }


                        }


                    }

                    protected void btnSave_Click(object sender, EventArgs e)
                    {

                    }
                }
            }
</code></pre>

<p>And I am getting an error from the Profile.IsAnonymous statement, as follows - </p>

<p>The type or namespace name 'IsAnonymous' does not exist in the namespace 'System.Web.Profile' (are you missing an assembly reference?)</p>

<p>What am I doing wrong? Do I need to add a .NET dll reference to the web application project? I tried to look for System.Web.Profile but there is no such DLL. Please help and thanks in advance.</p>
