R
rockdale
I have spent half day on this issue already, do not know what's wrong.
Please help.
I am trying to use SQL2k instead SQM2k5 express as my membership
provider.
but when I try to config it using asp.net configuration tool, I got
the following error:
There is a problem with your selected data store. This can be caused
by an invalid server name or credentials, or by insufficient
permission. It can also be caused by the role manager feature not
being enabled. Click the button below to be redirected to a page where
you can choose a new data store.
The following message may help in diagnosing the problem: An error has
occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server).
The error message sounds strange, why they use named pipe to connect?
Also, How VS2008 know its sql2k or sql2k5 since they use the same
System. Data.SqlClient??
----------------------
My config file looks like
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.
\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"
providerName="System.Data.SqlClient"/>
<add name="MSSql2k" connectionString="Data
Source=local;database=mydb;uid=**;pwd=**;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add connectionStringName="MSSql2k"
enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="MyAppl" requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="6" minRequiredPasswordLength="2"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
name="MySqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
I used aspnet_sqlreg.exe to succesfully register my sql2k database,
and in VS2008 server explorer I can see all the tables views and SPs.
If I change to use LocalSqlServer, then it works fine....
Thanks in advance
-rockdale
Please help.
I am trying to use SQL2k instead SQM2k5 express as my membership
provider.
but when I try to config it using asp.net configuration tool, I got
the following error:
There is a problem with your selected data store. This can be caused
by an invalid server name or credentials, or by insufficient
permission. It can also be caused by the role manager feature not
being enabled. Click the button below to be redirected to a page where
you can choose a new data store.
The following message may help in diagnosing the problem: An error has
occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server).
The error message sounds strange, why they use named pipe to connect?
Also, How VS2008 know its sql2k or sql2k5 since they use the same
System. Data.SqlClient??
----------------------
My config file looks like
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=.
\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"
providerName="System.Data.SqlClient"/>
<add name="MSSql2k" connectionString="Data
Source=local;database=mydb;uid=**;pwd=**;"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add connectionStringName="MSSql2k"
enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="MyAppl" requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="6" minRequiredPasswordLength="2"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
name="MySqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
I used aspnet_sqlreg.exe to succesfully register my sql2k database,
and in VS2008 server explorer I can see all the tables views and SPs.
If I change to use LocalSqlServer, then it works fine....
Thanks in advance
-rockdale