GaryHoff
asked on
Configuration Error: Unable to initialize provider. Missing or incorrect schema.
I am getting the following error initializing providers (VS 2005) and can't figure out where the problem is. Where can I find more detailed information on the problem? I purposely made the user id invalid on the connection string, and the error message is the same, so I dont think it is actually opening the database.
Configuration 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: Unable to initialize provider. Missing or incorrect schema.
Source Error:
Line 22: <providers>
Line 23: <clear/>
Line 24: <add name="MySqlRoleProvider" type="MySql.Web.Security.M ySQLRolePr ovider,MyS ql.Web, Version=5.2.2.0, Culture=neutral" connectionStringName="Conn String" applicationName="BringIt2M e" writeExceptionsToEventLog= "true"/>
Line 25: </providers>
Line 26: </roleManager>
Source File: C:\Inetpub\wwwroot\BringIt 2Me\web.co nfig Line: 24
Configuration 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: Unable to initialize provider. Missing or incorrect schema.
Source Error:
Line 22: <providers>
Line 23: <clear/>
Line 24: <add name="MySqlRoleProvider" type="MySql.Web.Security.M
Line 25: </providers>
Line 26: </roleManager>
Source File: C:\Inetpub\wwwroot\BringIt
Was your database properly installed using aspnet_regsql tool?(http://msdn.microsoft.com/en-us/library/ms229862(VS.80).aspx)
ASKER
The aspnet_regsql tool - that's for Microsoft's SQL only, or will it work with MySql as well?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For mysql you don't need aspnet_regsql already, because it supports self schema.
In the code autogenerateschema="true" line will do that for you. But my problem is; it works in my local but when i upload to server it gives ;
Parser Error Message: Unable to initialize provider. Missing or incorrect schema.
Source Error:
Line 22: <providers>
Line 23: <clear/>
Line 24: <add name="MySQLRoleProvider" type="MySql.Web.Security.M ySQLRolePr ovider" connectionStringName="Loca lMySqlServ er" applicationName="LoginCont rol"/>
Line 25: </providers>
Line 26: </roleManager>
In the code autogenerateschema="true" line will do that for you. But my problem is; it works in my local but when i upload to server it gives ;
Parser Error Message: Unable to initialize provider. Missing or incorrect schema.
Source Error:
Line 22: <providers>
Line 23: <clear/>
Line 24: <add name="MySQLRoleProvider" type="MySql.Web.Security.M
Line 25: </providers>
Line 26: </roleManager>
<membership defaultProvider="MySQLMembershipAppProvider">
<providers>
<clear/>
<add name="MySQLMembershipAppProvider"
type="MySql.Web.Security.MySQLMembershipProvider"
autogenerateschema="true"
connectionStringName="LocalMySqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="LoginControl"
requiresUniqueEmail="true"
passwordFormat="hashed"
maxInvalidPasswordAttempts="7"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
The accepted solution is wrong.
You can use MySQL.
You need check your connection string it's correct and working. Also check the the MySQL user you are using in that string has the sufficient permissions to add tables and etc.
You can use MySQL.
You need check your connection string it's correct and working. Also check the the MySQL user you are using in that string has the sufficient permissions to add tables and etc.