I was just trying to use the ProfileCommon class and I
came accross this strange error. Here is my web.config file with the correct
Profile object settings.
<anonymousIdentification enabled="false" />
<profile enabled="true" defaultProvider ="ProfileSqlProvider">
<providers>
<add name="ProfileSqlProvider" type="System.Web.Profile.SqlProfileProvider,
System.Web, Version=2.0.3600.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ConnectionString" />
</providers>
<!--
<properties>
<add name="FirstName" defaultValue="??" type="string"
allowAnonymous="false" />
</properties>
-->
</profile>
Now
you see that I have commented out the properties section since I don't want to
use any property (You can also remove it completly).
Now
in the Login control Logged_In event I wrote the following
code:

As,
you can see the error says that the type ProfileCommon namespace cannot be
found. This error dissappears if I include the properties. Any ideas why?
powered by IMHO 1.3