473,387 Members | 1,673 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,387 software developers and data experts.

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


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

<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=YOURSQLSERVER;Initial
Catalog=aspnetdb;Integrated Security=False;User
ID=user1;password=passw1"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<!--
+--------------------------------------------------+
| Case 2: |
| Custom Provider maybe on another database |
| engine like Oracle, MsAccess |
+--------------------------------------------------+
-->

<connectionStrings>
<add name="AccessFileName" connectionString="~/App_Data/ASPNetDB.mdb"

providerName="System.Data.OleDb"/>
...
...other connection string aliases

<add name="ApplicationFileName"
connectionString="~/App_Data/seek.mdb"
providerName="System.Data.OleDb"/>
</connectionStrings>

....

<membership defaultProvider="AccessMembershipProvider">
<providers>
<add name="AccessMembershipProvider"
type="Samples.AccessProviders.AccessMembershipProv ider,
AccessProvider"
connectionStringName="AccessFileName"
enablePasswordRetrieval="false"
enablePasswordReset="false" requiresUniqueEmail="false"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
applicationName="SampleSite" hashAlgorithmType="SHA1"
passwordFormat="Hashed"/>
</providers>
</membership>

<roleManager enabled="true" defaultProvider="AccessRoleProvider"
cacheRolesInCookie="true"
cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true" cookieProtection="All">
<providers>
<add name="AccessRoleProvider"
type="Samples.AccessProviders.AccessRoleProvider,
AccessProvider"
connectionStringName="AccessFileName"
applicationName="SampleSite"/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AccessProfileProvider">
<providers>
<add name="AccessProfileProvider"
type="Samples.AccessProviders.AccessProfileProvide r,
AccessProvider"
connectionStringName="AccessFileName"
applicationName="SampleSite"
description="Stores and retrieves profile data from an
AccessProvider database."/>
</providers>
<properties>
<add name="FriendlyName" type="string" allowAnonymous="true"
serializeAs="String"/>
<add name="Height" type="int" allowAnonymous="true"
serializeAs="String"/>
<add name="Weight" type="int" allowAnonymous="true"
serializeAs="Xml"/>
</properties>
</profile>

<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS"
cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false"
cookieSlidingExpiration="true" cookieProtection="None" domain=""/>

<webParts>
<personalization defaultProvider="AccessPersonalizationProvider">
<providers>
<add name="AccessPersonalizationProvider"
type="Samples.AccessProviders.AccessPersonalizatio nProvider,
AccessProvider"
connectionStringName="AccessFileName"
applicationName="SampleSite"/>
</providers>
</personalization>
</webParts>

Mar 21 '06 #1
1 3164
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******@hotmail.com> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...

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

<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=YOURSQLSERVER;Initial
Catalog=aspnetdb;Integrated Security=False;User
ID=user1;password=passw1"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<!--
+--------------------------------------------------+
| Case 2: |
| Custom Provider maybe on another database |
| engine like Oracle, MsAccess |
+--------------------------------------------------+
-->

<connectionStrings>
<add name="AccessFileName" connectionString="~/App_Data/ASPNetDB.mdb"

providerName="System.Data.OleDb"/>
...
...other connection string aliases

<add name="ApplicationFileName"
connectionString="~/App_Data/seek.mdb"
providerName="System.Data.OleDb"/>
</connectionStrings>

...

<membership defaultProvider="AccessMembershipProvider">
<providers>
<add name="AccessMembershipProvider"
type="Samples.AccessProviders.AccessMembershipProv ider,
AccessProvider"
connectionStringName="AccessFileName"
enablePasswordRetrieval="false"
enablePasswordReset="false" requiresUniqueEmail="false"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
applicationName="SampleSite" hashAlgorithmType="SHA1"
passwordFormat="Hashed"/>
</providers>
</membership>

<roleManager enabled="true" defaultProvider="AccessRoleProvider"
cacheRolesInCookie="true"
cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true" cookieProtection="All">
<providers>
<add name="AccessRoleProvider"
type="Samples.AccessProviders.AccessRoleProvider,
AccessProvider"
connectionStringName="AccessFileName"
applicationName="SampleSite"/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider="AccessProfileProvider">
<providers>
<add name="AccessProfileProvider"
type="Samples.AccessProviders.AccessProfileProvide r,
AccessProvider"
connectionStringName="AccessFileName"
applicationName="SampleSite"
description="Stores and retrieves profile data from an
AccessProvider database."/>
</providers>
<properties>
<add name="FriendlyName" type="string" allowAnonymous="true"
serializeAs="String"/>
<add name="Height" type="int" allowAnonymous="true"
serializeAs="String"/>
<add name="Weight" type="int" allowAnonymous="true"
serializeAs="Xml"/>
</properties>
</profile>

<anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS"
cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false"
cookieSlidingExpiration="true" cookieProtection="None" domain=""/>

<webParts>
<personalization defaultProvider="AccessPersonalizationProvider">
<providers>
<add name="AccessPersonalizationProvider"
type="Samples.AccessProviders.AccessPersonalizatio nProvider,
AccessProvider"
connectionStringName="AccessFileName"
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
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...
2
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,...
2
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...
0
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...
0
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 ...
2
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...
2
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...
1
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.