Click to See Complete Forum and Search --> : Help for Password Recovery Control


vivekshah
May 26th, 2007, 04:56 AM
Hello,

Please help me in Using the password recovery tool provided by asp.net 2.0.

What is membership provider...?


Plz help me out , it is urgent.

Thnx in advance.

Shuja Ali
May 26th, 2007, 05:09 AM
Introduction to Membership Providers (http://msdn2.microsoft.com/en-us/library/yh26yfzy.aspx)

vivekshah
May 26th, 2007, 05:25 AM
Hello,

But i have already gone thru with this page .

I changed my datasource from SQLEXPRESS to XYZ where database aspnetdb is installed.

I did it using the tool aspnet_regsql.exe

Still it give me the following error.



The user instance login flag is not supported on this version of SQL Server. The connection will be closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:


The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:


If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.

Shuja Ali
May 26th, 2007, 05:29 AM
Did you go through what the Compiler is telling you. The last four lines should be what you should be looking at.

vivekshah
May 26th, 2007, 05:35 AM
Hi,

This what the last four lines state:



[HttpException (0x80004005): Unable to connect to SQL Server database.]
System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +181
System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +167
System.Web.Management.SqlServices.Install(String database, String dbFileName, String connectionString) +46
System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile(String fullFileName, String dataDir, String connectionString) +681

Shuja Ali
May 26th, 2007, 05:46 AM
I was talking about the last four lines that are posted in your previous post.

vivekshah
May 26th, 2007, 05:50 AM
Ok , I got your point

But one thing that in the machine.config file , I changed the datasource from sql express to my loval SQL server.


After that i got this error.

App_data folder does exist and the writes too are given.

Still no success...

What can be done....