Search code examples
asp.net-profiles

ProfileCommon - where is it?


I've added this to web config:

  <profile enabled="true" >

  <properties >

    <add name="Gender" type="string"/>
    <add name="Age" type="Int32"/>
  </properties>

  <providers>
    <clear/>
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
  </providers>
</profile>

Though, if I try to use ProfileCommon class, it doesn't find it. Shouldn't this have been generated when I uilt the project?


Solution

  • using System.Web.Profile;
    

    Did you import the namespace?