473,795 Members | 2,861 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 1525
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
3895
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
6747
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
0
983
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
4951
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
2783
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
6210
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
1351
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
1339
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
9673
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
10443
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
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...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10002
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
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2921
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.