By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

aspnet_regsql Database Errors

P: n/a
I have several sites and membership databases on the same test
computer. They all have different names, so there is no problem.
However, now my Website Administration Tool won't create the ASPNETDB
database for me correctly. It creates the database, but doesn't add
the correct schema. When I attempt to use the aspnet_regsql tool, I
get the following error:


Setup failed.

An error occurred during the execution of the SQL file
'InstallMembership.sql'. The SQL error number is -2 and the
SqlException message is: Timeout expired. The timeout period elapsed
prior to completion of the operation or the server is not responding.

Details of failure

SQL Server:
Database: [ASPNETDB]
SQL file loaded:

Commands failed:

EXEC sp_addrolemember N'aspnet_Membership_BasicAccess',
EXEC sp_addrolemember N'aspnet_Membership_ReportingAccess',
SQL Exception:
System.Data.SqlClient.SqlException: Timeout expired. The timeout
period elapsed prior to completion of the operation or the server is
not responding.
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection)
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
System.Data.SqlClient.TdsParserStateObject.ReadSni Error(TdsParserStateObject
stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni (DbAsyncResult
asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadPac ket(Int32
at System.Data.SqlClient.TdsParserStateObject.ReadBuf fer()
at System.Data.SqlClient.TdsParserStateObject.ReadByt e()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuer yTds(String
methodName, Boolean async)
System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult
result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at System.Web.Management.SqlServices.ExecuteFile(Stri ng file, String
server, String database, String dbFileName, SqlConnection connection,
Boolean sessionState, Boolean isInstall, SessionStateType

Can anyone help me out with this?


Jun 6 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.