473,785 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Pro fileProvider">
<providers>

<add name="MyProfile _ProfileProvide r"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

<add name="MyProfile 1_ProfileProvid er"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

<add name="MyProfile 2_ProfileProvid er"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

</providers>
<properties>

<group name="Users">
<add name="FirstName "
provider="MyPro file_ProfilePro vider"/>
<add name="LastName"
provider="MyPro file_ProfilePro vider"/>
<add name="Accounts"
provider="MyPro file_ProfilePro vider"
type="System.Co llections.Array List"/>
</group>

<group name="Customers ">
<add name="CustomerN ame"
provider="MyPro file1_ProfilePr ovider"
allowAnonymous= "true" />
<add name="AccountNu mber"
provider="MyPro file1_ProfilePr ovider"/>
<add name="Contact"
provider="MyPro file1_ProfilePr ovider"/>
</group>

<group name="ServicePr oviders">
<add name="ServicePr oviderName"
provider="MyPro file2_ProfilePr ovider"/>
<add name="AccountNu mber"
provider="MyPro file2_ProfilePr ovider"/>
<add name="Contact"
provider="MyPro file2_ProfilePr ovider"/>
</group>

</properties>
</profile>
May 17 '06 #1
1 1522
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" SQLTableProfile Provider.

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_Pro fileProvider">
<providers>

<add name="MyProfile _ProfileProvide r"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

<add name="MyProfile 1_ProfileProvid er"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

<add name="MyProfile 2_ProfileProvid er"
connectionStrin gName="LocalSql Server"
applicationName ="/"
type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>

</providers>
<properties>

<group name="Users">
<add name="FirstName "
provider="MyPro file_ProfilePro vider"/>
<add name="LastName"
provider="MyPro file_ProfilePro vider"/>
<add name="Accounts"
provider="MyPro file_ProfilePro vider"
type="System.Co llections.Array List"/>
</group>

<group name="Customers ">
<add name="CustomerN ame"
provider="MyPro file1_ProfilePr ovider"
allowAnonymous= "true" />
<add name="AccountNu mber"
provider="MyPro file1_ProfilePr ovider"/>
<add name="Contact"
provider="MyPro file1_ProfilePr ovider"/>
</group>

<group name="ServicePr oviders">
<add name="ServicePr oviderName"
provider="MyPro file2_ProfilePr ovider"/>
<add name="AccountNu mber"
provider="MyPro file2_ProfilePr ovider"/>
<add name="Contact"
provider="MyPro file2_ProfilePr ovider"/>
</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
3892
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 (unsing WinNT SP6) experienced a dramatic performance drop. We investigated, and it turned out that it depends on the
0
1816
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 in C# using windows forms, to create windows user profiles and then updating the registry information for the new profiles. I have managed to create the user successfully and thought that I was
9
6745
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
0
982
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 msmapi32.ocx to send mail. On MOST of the computers, this works. But on a few of these computers, where it was working for a long time, it now gives an invalid session ID.
1
4950
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) Output of "db2ilist" does not list all the instances on my AIX box. DB2 functions normally - I do not get any unexpected errors. Any ideas what configuration has been missed out?...
0
1685
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 specified date. - DeleteProfile. Enables you to delete a profile associated with a specified username. - DeleteProfiles. Enables you to delete a set of profiles. - FindInactiveProfilesByUserName. Returns a collection of ProfileInfo
1
2782
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 have it's own custom deployment properties such as Publish Version Number, Start Menu and application Name in start menu. For example, in the past (before ClickOnce deployment) I had to build Setup.exe files and distribute them to various...
3
6209
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
1350
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 west2. When I am trying to connect to west1. I can succesfully connect to the excahnge mail box, but if i try to connect to another west2 profile then
1
1338
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 west2. When I am trying to connect to west1. I can succesfully connect to the excahnge mail box, but if i try to connect to another west2 profile then
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.