Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Profile object does not have stronly types properties

Status
Not open for further replies.

mais123

Programmer
Dec 26, 2007
36
US
Hi,
I am trying to use personalization, but in my code file Profile object does not have stronly typed properties I have defined in web.config.
Here is how I set up my web.config:
Code:
	<profile defaultProvider="CustomProfileProvider">
			<providers>
				<add name="CustomProfileProvider" connectionStringName="SQLConnString" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
			</providers>
			<properties>
				<add name="Favorites" type="string"
                     allowAnonymous="true" />
			</properties>

I also have using System.Web.Profile; in the web form. But when I type Profile. I do not get Favorites property

What am I missing?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top