473,703 Members | 2,829 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I use another ASPNET provider aside from the default?


<!--
+-----------------------------------------------------+
| Case 1: |
| Using another SQL Server |
| Registered via aspent_regsql.e xe utility |
| |
+-----------------------------------------------------+
-->

<connectionStri ngs>
<remove name="LocalSqlS erver"/>
<add name="LocalSqlS erver"
connectionStrin g="Data Source=YOURSQLS ERVER;Initial
Catalog=aspnetd b;Integrated Security=False; User
ID=user1;passwo rd=passw1"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>
<!--
+--------------------------------------------------+
| Case 2: |
| Custom Provider maybe on another database |
| engine like Oracle, MsAccess |
+--------------------------------------------------+
-->

<connectionStri ngs>
<add name="AccessFil eName" connectionStrin g="~/App_Data/ASPNetDB.mdb"

providerName="S ystem.Data.OleD b"/>
...
...other connection string aliases

<add name="Applicati onFileName"
connectionStrin g="~/App_Data/seek.mdb"
providerName="S ystem.Data.OleD b"/>
</connectionStrin gs>

....

<membership defaultProvider ="AccessMembers hipProvider">
<providers>
<add name="AccessMem bershipProvider "
type="Samples.A ccessProviders. AccessMembershi pProvider,
AccessProvider"
connectionStrin gName="AccessFi leName"
enablePasswordR etrieval="false "
enablePasswordR eset="false" requiresUniqueE mail="false"
requiresQuestio nAndAnswer="fal se"
minRequiredPass wordLength="1"
minRequiredNona lphanumericChar acters="0"
applicationName ="SampleSite " hashAlgorithmTy pe="SHA1"
passwordFormat= "Hashed"/>
</providers>
</membership>

<roleManager enabled="true" defaultProvider ="AccessRolePro vider"
cacheRolesInCoo kie="true"
cookieName=".AS PXROLES" cookieTimeout=" 30" cookiePath="/"
cookieRequireSS L="false"
cookieSlidingEx piration="true" cookieProtectio n="All">
<providers>
<add name="AccessRol eProvider"
type="Samples.A ccessProviders. AccessRoleProvi der,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider ="AccessProfile Provider">
<providers>
<add name="AccessPro fileProvider"
type="Samples.A ccessProviders. AccessProfilePr ovider,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "
description="St ores and retrieves profile data from an
AccessProvider database."/>
</providers>
<properties>
<add name="FriendlyN ame" type="string" allowAnonymous= "true"
serializeAs="St ring"/>
<add name="Height" type="int" allowAnonymous= "true"
serializeAs="St ring"/>
<add name="Weight" type="int" allowAnonymous= "true"
serializeAs="Xm l"/>
</properties>
</profile>

<anonymousIdent ification enabled="true" cookieName=".AS PXANONYMOUS"
cookieTimeout=" 100000" cookiePath="/" cookieRequireSS L="false"
cookieSlidingEx piration="true" cookieProtectio n="None" domain=""/>

<webParts>
<personalizatio n defaultProvider ="AccessPersona lizationProvide r">
<providers>
<add name="AccessPer sonalizationPro vider"
type="Samples.A ccessProviders. AccessPersonali zationProvider,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "/>
</providers>
</personalization >
</webParts>

Mar 21 '06 #1
1 3175
I'm not sure what your question is. You seem to have the providers in your
web.config.

If you're wondering how to switch providers, there's code here on loading
and initializing custom providers:

http://msdn.microsoft.com/library/de...ovMod_Prt8.asp
"Anonieko" <an******@hotma il.com> wrote in message
news:11******** *************@u 72g2000cwu.goog legroups.com...

<!--
+-----------------------------------------------------+
| Case 1: |
| Using another SQL Server |
| Registered via aspent_regsql.e xe utility |
| |
+-----------------------------------------------------+
-->

<connectionStri ngs>
<remove name="LocalSqlS erver"/>
<add name="LocalSqlS erver"
connectionStrin g="Data Source=YOURSQLS ERVER;Initial
Catalog=aspnetd b;Integrated Security=False; User
ID=user1;passwo rd=passw1"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>
<!--
+--------------------------------------------------+
| Case 2: |
| Custom Provider maybe on another database |
| engine like Oracle, MsAccess |
+--------------------------------------------------+
-->

<connectionStri ngs>
<add name="AccessFil eName" connectionStrin g="~/App_Data/ASPNetDB.mdb"

providerName="S ystem.Data.OleD b"/>
...
...other connection string aliases

<add name="Applicati onFileName"
connectionStrin g="~/App_Data/seek.mdb"
providerName="S ystem.Data.OleD b"/>
</connectionStrin gs>

...

<membership defaultProvider ="AccessMembers hipProvider">
<providers>
<add name="AccessMem bershipProvider "
type="Samples.A ccessProviders. AccessMembershi pProvider,
AccessProvider"
connectionStrin gName="AccessFi leName"
enablePasswordR etrieval="false "
enablePasswordR eset="false" requiresUniqueE mail="false"
requiresQuestio nAndAnswer="fal se"
minRequiredPass wordLength="1"
minRequiredNona lphanumericChar acters="0"
applicationName ="SampleSite " hashAlgorithmTy pe="SHA1"
passwordFormat= "Hashed"/>
</providers>
</membership>

<roleManager enabled="true" defaultProvider ="AccessRolePro vider"
cacheRolesInCoo kie="true"
cookieName=".AS PXROLES" cookieTimeout=" 30" cookiePath="/"
cookieRequireSS L="false"
cookieSlidingEx piration="true" cookieProtectio n="All">
<providers>
<add name="AccessRol eProvider"
type="Samples.A ccessProviders. AccessRoleProvi der,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider ="AccessProfile Provider">
<providers>
<add name="AccessPro fileProvider"
type="Samples.A ccessProviders. AccessProfilePr ovider,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "
description="St ores and retrieves profile data from an
AccessProvider database."/>
</providers>
<properties>
<add name="FriendlyN ame" type="string" allowAnonymous= "true"
serializeAs="St ring"/>
<add name="Height" type="int" allowAnonymous= "true"
serializeAs="St ring"/>
<add name="Weight" type="int" allowAnonymous= "true"
serializeAs="Xm l"/>
</properties>
</profile>

<anonymousIdent ification enabled="true" cookieName=".AS PXANONYMOUS"
cookieTimeout=" 100000" cookiePath="/" cookieRequireSS L="false"
cookieSlidingEx piration="true" cookieProtectio n="None" domain=""/>

<webParts>
<personalizatio n defaultProvider ="AccessPersona lizationProvide r">
<providers>
<add name="AccessPer sonalizationPro vider"
type="Samples.A ccessProviders. AccessPersonali zationProvider,
AccessProvider"
connectionStrin gName="AccessFi leName"
applicationName ="SampleSite "/>
</providers>
</personalization >
</webParts>

Mar 22 '06 #2

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

Similar topics

0
1187
by: Michael J. Bigos | last post by:
Has anyone else come across this? We are building an ASP.Net application that uses a certficate in the local machine store to sign XML data before transmitting it to a third-party. The third party application was getting an "invalid signature" error upon verification of the signature in our Test environments. I thought perhaps our Production (www) certificate version was being used instead, so I exported it from the Production server and...
2
11681
by: Dean Colpitts | last post by:
I have a customer who decided to delete the ASPNET user account from EVERY SINGLE WXPP COMPUTER in his network, and now is discovering he has issues... Aside from reloading Windows from scratch, how do we re-configure these machines to get the ASPNET user account with the correct permissions? Thanks
2
1426
by: Arjen | last post by:
Hi, I want to use the aspnet tables (for membership, profiles, roles, etc.) inside my own database. I have succesfully installed these tables. Now I need to tell my application or asp.net 2.0 that it can find these tables inside my database. When I go to "asp.net configuration" it copies a new aspnet database. This is not what I want.
0
1260
by: Paolo | last post by:
I have just installed VS Net 2005, and SQL Server 2005. Previously I had tried Visual Web Developer 2005, and I was able to follow the tutorials. I transferred some of the example websites to VS 2005. However, I can not get the ASPNet Configuration to work. In VS Net 2005, when I click on the ASPNet Configuration icon, I get (after a very long pause) the first screen with the tabs. I click on Security. ( I tried clicking first on the...
0
6242
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc for this MS Access db. Well, microsoft offers a download sample. Instructions are below. HOW TO USE MS ACCESS DB FOR ASPNET APPLICATION SERVICES ( membership, profile, roles, etc providers)
2
1356
by: Seguros Catatumbo | last post by:
Hi, i have decent experience with asp 3.0 (classic), and downloaded web developer express to see what's the fuzz over it. I have lots of questions, mostly regarding the use of forms and database use. 1) Why should i use the asp:label, asp:textbox, asp:submit instead of plain old html input type="...", form action="..." 2) What's up with all those javascript:__dopostback links when using some controls? Does it mean text browsers and...
2
2466
by: jld | last post by:
Hi, I developed an asp.net based eCommerce Website for a client and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up interactivity. The service suffers from a lot of restarts since discountasp enforces a 100mb per worker thread limit and when you top it, the service gets restarted. When there is a lot of traffic on the site, this happens
1
1102
by: Sunfire | last post by:
How do you make it so the aspnet.mdf file doesnt get created even though I created a custom provider?
5
1963
by: Rory Becker | last post by:
Hi All I have a database which has it's own set of tables for users etc I already successfully use the Login control by handling the Authenticate event and checking the suitable values against my own DB. Now I need to use the ChangePassword control but I cannot stop the system from trying to create a database.
0
8743
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
8659
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
9239
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...
1
8995
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
8951
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
4417
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...
0
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3113
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
2424
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.