Error configuring the SQL database
Error configuring the SQL database.
SQL Server does not exist or access is denied.
I am attempting at installing Gemini and I keep getting this error. I'm trying to install it with SQL Server Express and the database named Gemini.
Here is the connectin string from my web.config file. Are there any known issues of Gemini running with SQL Server Express? I wouldn't think there would be but I can't seem to find out where the error is being thrown.
<nhibernate>
<!-- The SQL Server dialect (Gemini supports "MsSql2000Dialect" or "MsSql7Dialect") -->
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect"/>
<!-- The SQL Server database connection string -->
<add key="hibernate.connection.connectionstring" value="data source=127.0.0.1;initial catalog=Gemini;user id=sa;password=sa"/>
<!-- Misc -->
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
<add key="hibernate.connection.driverclass" value="NHibernate.Driver.SqlClientDriver"/>
</nhibernate>
|
deaner
· 1 |
|
| Friday, February 16, 2007, 5:37:25 AM | |
0
|
Please make sure you set the server name (data source), database (initial catalog) and user name and password. |
||||
|
|||||
0
|
Ok, I've double checked the connection in the web config but now I keep getting this error message. I've attempted to troubleshoot it and already enable Named Pipes in the SQL Server Configuration Manager, added the users and checked the firewall but keep getting this error. 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)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.Exception Details: System.Data.SqlClient.SqlException: 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) |
||||
|
|||||
0
|
Try enabling TCP. |
||||
|
|||||
0
|
I have seen this sort of error before with SQL Express databases. You may need to connect with the format: machine_name\sqlexpress (change the sqlexpress if you didn't install it with this default name). Kevin |
||||
|
|||||
0
|
Ok, Thanks alot. Changing the adding the servername\sqlexpress seemed to help. Now I am getting this error. Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.I did some research and changed the authentication method and enabled Named Pipes but it is still throwing that error. Any suggestions? |
||||
|
|||||
0
|
You need to enable SQL authentication. You can do this using SQL Server Management Studio. Right click on the server and select the security option, select SQL and windows authentication mode in Server authentication. |
||||
|
|||||
0
|
^ I've already done that and I can't seem to see why I am still getting the error message. I've also added the SQL Service Patches. |
||||
|
|||||
0
|
Try creating a new SQL login and made it a dbo to the gemini database and use that login information in the web.config. Also, try using the computername instead of 127.0.0.1 |
||||
|
|||||




