Configurazione dei Provider ASP.NET 4.0, 3.5 e 2.0 per Microsoft Access
Avvertenza: i Provider ASP.NET per Microsoft Access (in particolare, i provider relativi alle Membership, Roles e Profile API) possono essere scaricati direttamente dall'area download di MSDN (attenzione, parte subito il download).
<configuration> <connectionStrings> <add name="AccessFileName" connectionString="~/App_Data/ASPNetDB.mdb" providerName="System.Data.OleDb"/> </connectionStrings> <system.web> <!-- Membership API --> <membership defaultProvider="AccessMembershipProvider"> <providers> <add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider, SampleAccessProviders" connectionStringName="AccessFileName" enablePasswordRetrieval="false" enablePasswordReset="false" requiresUniqueEmail="false" requiresQuestionAndAnswer="false" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" applicationName="/" hashAlgorithmType="SHA1" passwordFormat="Hashed"/> </providers> </membership> <!-- Roles API --> <roleManager enabled="true" defaultProvider="AccessRoleProvider"> <providers> <add name="AccessRoleProvider" type="Samples.AccessProviders.AccessRoleProvider, SampleAccessProviders" connectionStringName="AccessFileName" applicationName="/" /> </providers> </roleManager> <!-- Profile API --> <profile enabled="true" defaultProvider="AccessProfileProvider"> <providers> <add name="AccessProfileProvider" type="Samples.AccessProviders.AccessProfileProvider, SampleAccessProviders" connectionStringName="AccessFileName" applicationName="/" /> </providers> </profile> </system.web> </configuration>
Provider ASP.NET 2.0, 3.5 e 4.0
Seleziona la tua opzione per avere il web.config pronto per Membership, Roles e Profile API.