473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Profiles

Ron
Hi,

My question is about the new ProfileProvider class in ASP.NET 2.0
and what its limits are.

Can you have multiple Providers with unique properties to each be defined
in the web config file and also group them as such.

example as follows

<profile defaultProvider="MyProfile_ProfileProvider">
<providers>

<add name="MyProfile_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile1_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile2_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

</providers>
<properties>

<group name="Users">
<add name="FirstName"
provider="MyProfile_ProfileProvider"/>
<add name="LastName"
provider="MyProfile_ProfileProvider"/>
<add name="Accounts"
provider="MyProfile_ProfileProvider"
type="System.Collections.ArrayList"/>
</group>

<group name="Customers">
<add name="CustomerName"
provider="MyProfile1_ProfileProvider"
allowAnonymous="true" />
<add name="AccountNumber"
provider="MyProfile1_ProfileProvider"/>
<add name="Contact"
provider="MyProfile1_ProfileProvider"/>
</group>

<group name="ServiceProviders">
<add name="ServiceProviderName"
provider="MyProfile2_ProfileProvider"/>
<add name="AccountNumber"
provider="MyProfile2_ProfileProvider"/>
<add name="Contact"
provider="MyProfile2_ProfileProvider"/>
</group>

</properties>
</profile>
May 17 '06 #1
1 1503
I have asked the same question in the asp.net forums, but have recieved
no reply. My intent is to use double providers for the sake of
creating a routie to migrate from one provider store to the other!

UNfortunatley due to time constraints, it was necessary to go live
prior to adopting the new provider. Now that it's in place we need a
way to tranfer the existing valid live data from the serializable
tables to our new "In The Clear" SQLTableProfileProvider.

Anyone?
Ron wrote:
Hi,

My question is about the new ProfileProvider class in ASP.NET 2.0
and what its limits are.

Can you have multiple Providers with unique properties to each be defined
in the web config file and also group them as such.

example as follows

<profile defaultProvider="MyProfile_ProfileProvider">
<providers>

<add name="MyProfile_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile1_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<add name="MyProfile2_ProfileProvider"
connectionStringName="LocalSqlServer"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

</providers>
<properties>

<group name="Users">
<add name="FirstName"
provider="MyProfile_ProfileProvider"/>
<add name="LastName"
provider="MyProfile_ProfileProvider"/>
<add name="Accounts"
provider="MyProfile_ProfileProvider"
type="System.Collections.ArrayList"/>
</group>

<group name="Customers">
<add name="CustomerName"
provider="MyProfile1_ProfileProvider"
allowAnonymous="true" />
<add name="AccountNumber"
provider="MyProfile1_ProfileProvider"/>
<add name="Contact"
provider="MyProfile1_ProfileProvider"/>
</group>

<group name="ServiceProviders">
<add name="ServiceProviderName"
provider="MyProfile2_ProfileProvider"/>
<add name="AccountNumber"
provider="MyProfile2_ProfileProvider"/>
<add name="Contact"
provider="MyProfile2_ProfileProvider"/>
</group>

</properties>
</profile>


Jun 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Test Test | last post by:
Hi, group! Here is some interesting problem: Our company has developed a large VB6 application that runs very smoothly on most environments. However, all of a sudden one of our customers...
0
by: Wayne Gibson | last post by:
Hi all, Please ignore the other post.. The cat jumped on the machine and sent it before I could stop it!! Was wondering if anybody has expericence this problem.. I am writting an application...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
0
by: Selden McCabe | last post by:
I have a VB6 application running on a number of computers at a school. These all have Microsoft Office (and also Outlook) installed. They are using an Exchange server. This app uses the...
1
by: Anurag | last post by:
Hi, I have 2 related questions. DB2 UDB ESE v8.x (8.1 till 8.2 FP2 - all fixpaks included) on AIX 5.4.x _____________________________________________________________________________ (QUESTION 1)...
0
by: george_Martinho | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older than a...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
3
by: Jeff | last post by:
Hey asp.net 2.0 I want to populate a GridView with the profile properties off all users registered on a website! For example like this: <profile enabled="true"> <properties>
1
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I really need help in this email. I am using pop3 service to connect to microsoft exchange. I have two profiles defined in microsoft exchange. One is west1 and another one is...
1
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I really need help in this email. I am using pop3 service to connect to microsoft exchange. I have two profiles defined in microsoft exchange. One is west1 and another one is...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.