title: .net profile provider and custom profiles. The settings property '' was not found.
body: <p>I've run into a bit of a pickle here. I have a custom profile that I used in two applications in the same solution. The first was a web application that I built to import a custom set of user profiles and attributes from an old .net application into the .net membership membership, roles, profile tables. I built a profile common class that inherits from profilebase. Both applications have a copy of the same class within their namespaces.</p>
  
  <pre><code>using System;
  using System.Web.Security;
  using System.Web.Profile;
  using System.Collections.Specialized;
  
  
  namespace WebProject
  {
      public class ProfileCommon : ProfileBase
      {
          public static ProfileCommon GetUserProfile(string username)
          {
              return Create(username) as ProfileCommon;
          }
  
          public static ProfileCommon GetUserProfile()
          {
              return Create(Membership.GetUser().UserName) as ProfileCommon;
          }
  
          [SettingsAllowAnonymous(false)]
          public string FirstName
          {
              get
              {
                  return base["FirstName"] as string;
              }
              set
              {
                  base["FirstName"] = value;
              }
          }
  
          [SettingsAllowAnonymous(false)]
          public string LastName
          {
              get
              {
                  return base["LastName"] as string;
              }
              set
              {
                  base["LastName"] = value;
              }
          }
  
          [SettingsAllowAnonymous(false)]
          public string Email
          {
              get
              {
                  return base["Email"] as string;
              }
              set
              {
                  base["Email"] = value;
              }
          }
  
          [SettingsAllowAnonymous(false)]
          public StringCollection Sites
          {
              get
              {
                  return base["Sites"] as StringCollection;
              }
  
              set
              {
                  base["Sites"] = value;
              }
          }
      }
  }
  </code></pre>
  
  <p>My profile provider section in my web config file looks like this.</p>
  
  <pre><code>&lt;profile defaultProvider="WebProjectProfileProvider" inherits="WebProject.ProfileCommon"&gt;
    &lt;providers&gt;
      &lt;clear /&gt;
      &lt;add name="WebProjectProfileProvider" applicationName="/" type="System.Web.Profile.SqlProfileProvider" connectionStringName="Test"/&gt;
    &lt;/providers&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>If I use one application to perform the user import and another that uses the membership, roles and profiles that I created would this cause the "The settings property '' was not found." error? I can't seem to pinpoint where the error is being caused and some of the most common causes I've already checked. This is the first time I've used this feature in .net on such a large scale. Any help is greatly appreciated.</p>
  
  <p>Thanks. </p>