M
Mich
Hi,
I changed the default provider for usernames like this in web.config:
</connectionStrings>
<clear/>
<add name="myprovider" connectionString="Data Source=.\sqlexpress;Initial
Catalog=mydb;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="myprovider"
.......
/>
</providers>
</membership>
This works: the created usernames (via CreateUserWizard control) are put
into tables created in database 'mydb'.
Now i also defined a profile properties in web.config like this:
<profile enabled="true">
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="myprovider"/>
</providers>
<properties>
<add name="manager" type="System.Boolean"/>
</properties>
</profile>
When trying to create a new user with CreateUserWizard where i added a
checkbox, i get this error:
Description: An error occurred during the processing of a configuration file
required to service this request.
Please review the specific error details below and modify your configuration
file appropriately.
Parser Error Message: Provider must implement the class
'System.Web.Profile.ProfileProvider'.
Source Error:
Line 98: <clear/>
Line 99: <add name="AspNetSqlMembershipProvider"
Line 100: type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
Line 101: connectionStringName="myprovider"/>
Line 102: </providers>
Source File: c:\inetpub\wwwroot\tennis\web.config Line: 100
Why do i get this message when using profile and not otherwise? And how to
fix that?
Thanks
Mich
I changed the default provider for usernames like this in web.config:
</connectionStrings>
<clear/>
<add name="myprovider" connectionString="Data Source=.\sqlexpress;Initial
Catalog=mydb;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="myprovider"
.......
/>
</providers>
</membership>
This works: the created usernames (via CreateUserWizard control) are put
into tables created in database 'mydb'.
Now i also defined a profile properties in web.config like this:
<profile enabled="true">
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="myprovider"/>
</providers>
<properties>
<add name="manager" type="System.Boolean"/>
</properties>
</profile>
When trying to create a new user with CreateUserWizard where i added a
checkbox, i get this error:
Description: An error occurred during the processing of a configuration file
required to service this request.
Please review the specific error details below and modify your configuration
file appropriately.
Parser Error Message: Provider must implement the class
'System.Web.Profile.ProfileProvider'.
Source Error:
Line 98: <clear/>
Line 99: <add name="AspNetSqlMembershipProvider"
Line 100: type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
Line 101: connectionStringName="myprovider"/>
Line 102: </providers>
Source File: c:\inetpub\wwwroot\tennis\web.config Line: 100
Why do i get this message when using profile and not otherwise? And how to
fix that?
Thanks
Mich