471,595 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

maintaning extra user-specific data (profiles)

Hello,
I am learning .NET (3.0). I am writing ASP.NET application and I need to
store some extra information (like default settings for each user.
In web.config I added:

<profile enabled="true">
<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>
But I don't know how to maintain the data. In Website|ASP.NET Configuration
I don't see my properties.
Could you help me please?
/RAM/
Dec 23 '06 #1
1 1479
I have changed <profilesection definition to:
<profile enabled="true" defaultProvider="AspNetSqlMembershipProvider">

<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>

<membership defaultProvider="AspNetSqlMembershipProvider">

<providers>

<add name="AspNetSqlMembershipProvider"

type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

connectionStringName="SqlServices"

minRequiredPasswordLength="4"

minRequiredNonalphanumericCharacters="0" />

</providers>

</membership>

....and I am trying to read extra data (DefaultProject):

UserProfile up = new UserProfile(); // here error

.... up.DefaultProject ...

But I recive error: Default profile provider not found. In line: <profile
enabled="true" defaultProvider="AspNetSqlMembershipProvider">

Could you help me plase?

Użytkownik "R.A.M." <r_********@poczta.onet.plnapisał w wiadomo¶ci
news:em**********@news.onet.pl...
Hello,
I am learning .NET (3.0). I am writing ASP.NET application and I need to
store some extra information (like default settings for each user.
In web.config I added:

<profile enabled="true">
<properties>

<add name="DefaultProject" type="string"/>

</properties>

</profile>
But I don't know how to maintain the data. In Website|ASP.NET
Configuration I don't see my properties.
Could you help me please?
/RAM/


Dec 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Tank | last post: by
4 posts views Thread by Christoph Haas | last post: by
2 posts views Thread by michael | last post: by
11 posts views Thread by santosh | last post: by
8 posts views Thread by dancer | last post: by
reply views Thread by Steven Cheng [MSFT] | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.