title: ASP.NET Profile Properties - using C# MVC
body: <p>I am using C# MVC using .NET 4.0</p>
  
  <p>I am trying to implement the ASP.NET Profile Properties seen at</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx</a></p>
  
  <p>First, I added the following in my web.config file. Note that I am trying to store the Location for a given user:</p>
  
  <pre><code>    &lt;profile&gt;
       &lt;properties&gt;
        &lt;add name="Location" /&gt;
       &lt;/properties&gt;
       &lt;providers&gt;
        &lt;clear /&gt;
        &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
       &lt;/providers&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p>Within my code, I used the following:</p>
  
  <p>After I post, I used the following my in controller:</p>
  
  <pre><code>      Profile.Location = model.Location; 
  </code></pre>
  
  <p>I am getting an error, Cannot resolve 'Profile'. Has anybody used the Profile Property that can offer any assistance? Note that I wasn't even able to find the class that is mentioned in the article.</p>
  
  <p>Thanks</p>