Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Gordon 10/8/2008 11:06 AM
Hi- hope someone can help- I installed to a virtual folder on my site, ran the application and got a "could not connect error". Running the /Install/Install.aspx directly gives the following error

Cuyahoga Installation
An error occured:

System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at NHibernate.Connection.DriverConnectionProvider.GetConnection() at Cuyahoga.Core.Util.DatabaseUtil.GetAssemblyVersion(String assembly) at Cuyahoga.Core.Service.DatabaseInstaller.CheckCurrentVersionInDatabase() at Cuyahoga.Core.Service.DatabaseInstaller..ctor(String installRootDirectory, Assembly assembly) at Cuyahoga.Web.Install.Install.Page_Load(Object sender, EventArgs e)


The conection string is
{connectionString}server=localhost;database=cms2;uid=ghooton;pwd=scoop;allow user variables=true{/connectionString}
{nhibernateDriver}NHibernate.Driver.MySqlDataDriver{/nhibernateDriver}
{nhibernateDialect}NHibernate.Dialect.MySQLDialect{/nhibernateDialect}

(Changed < to { to allow this post to be accepted)

The database is MySql and works correctly in PHPAdmin with that login.
Looks like an authentication error on shared hosting- has anyone any suggestions

Many Thanks
# martijnb 10/8/2008 12:03 PM
Cuyahoga is trying to connect to SQL Server (the default). If you modified the properties.config after running Cuyahoga for the first time, you have to recycle the application, otherwise the setting is not active. You can recycle the app by doing a minor change to web.config (add a space somewhere) or by doing it in the IIS management app.
# guava 12/13/2008 12:10 PM

4. Change the connection string in the /Config/properties.config (connectionString)
to the database that is created in step 3.

see forward in Install-binary.txt