title: Profile property not found in ASP.NET 4
body: <p>I'm using ASP.NET 4 out-of-the-box forms authentication method. 
  I want to add some custom properties to user's profiles so I've added the following code to my <code>web.config</code> file:</p>
  
  <pre><code>&lt;profile enabled="true"&gt;
  
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add name="AspNetSqlProfileProvider" 
           type="System.Web.Profile.SqlProfileProvider" 
           connectionStringName="ApplicationServices" 
           applicationName="/"/&gt;
    &lt;/providers&gt; 
  
    &lt;properties&gt;        
      &lt;add name="DisplayName"/&gt;
      &lt;add name="PhoneNumber"/&gt;
      &lt;add name="FaxNumber"/&gt;
      &lt;add name="Email"/&gt;
    &lt;/properties&gt;
  
  &lt;/profile&gt;
  </code></pre>
  
  <p>But when I try to access any of these properties in an aspx file using something like:</p>
  
  <pre><code>TextBox.Text = Profile.DisplayName;
  </code></pre>
  
  <p>I get a red line under <code>DisplayName</code> and it's saying <code>ProjectName.Profile does not contain a definition for DisplayName</code>.</p>
  
  <p>I've searched the net for several hours now and I'm quite clueless. Any ideas on how to fix this?</p>