Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# cipher_nemo 8/20/2007 6:15 PM
I'm running into errors on install that appear to be related to missing/non-created database objects. If I browse to the root of Cuyahoga, I get an error that the server can't find "cuyahoga_sitealias". If I manually browse to the installer (/Install/Install.aspx), I get a long error from an Exception:
An error occured:

NHibernate.ADOException: Unable to perform find ---> System.Data.SqlClient.SqlException: Invalid object name 'cuyahoga_user'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) 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.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session) at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies) at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) at NHibernate.Loader.CriteriaLoader.List(ISessionImplementor session) at NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria) --- End of inner exception stack trace --- at NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria) at NHibernate.Impl.CriteriaImpl.List() at Cuyahoga.Core.DataAccess.CommonDao.GetAll(Type type, String[] sortProperties) in D:\_Documents\_Projects\Visual Studio\_cuyahoga\Core\DataAccess\CommonDao.cs:line 74 at Cuyahoga.Core.DataAccess.CommonDao.GetAll(Type type) in D:\_Documents\_Projects\Visual Studio\_cuyahoga\Core\DataAccess\CommonDao.cs:line 59 at ProxyInterfaceDataAccessCommonDao_ICommonDao_ISerializable.callback__GetAll(Type ) at ProxyInterfaceDataAccessCommonDao_ICommonDao_ISerializable.__delegate_4.Call(Object[] ) at Castle.Windsor.Proxy.DefaultMethodInvocation.Proceed(Object[] args) at Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor.Intercept(IMethodInvocation invocation, Object[] args) at Castle.Windsor.Proxy.DefaultMethodInvocation.Proceed(Object[] args) at Castle.Windsor.Proxy.InterceptorChain.Intercept(IMethodInvocation invocation, Object[] args) at ProxyInterfaceDataAccessCommonDao_ICommonDao_ISerializable.GetAll(Type type) at Cuyahoga.Web.Install.Install.Page_Load(Object sender, EventArgs e) in D:\_Documents\_Projects\Visual Studio\_cuyahoga\Web\Install\Install.aspx.cs:line 90

What I've done so far...

1.) I downloaded the latest source build for Cuyahoga (1.5.0)

2.) extracted it

3.) read the Install.txt

4.) changed the \Config\properties.config with my connection string (db server, db name, user ID, and password)

5.) built it successfully in VS 2005

6.) published it to a local folder

7.) transferred the files to my hosting provider via FTP, to a sub-folder titled "cms"

I am now on a full-trust server with my hosting provider. I know my database connection works, as I can connect to it manually and with other web apps I'm currently running.

Any ideas as to why I'm getting these error messages? I'd hate to have to troubleshoot this myself if someone else already knows of reasons as to why this might be happening. Thanks! :)
# Efie 8/20/2007 9:08 PM
It's a bit of guessing what the problem is, but it seems that the database isn't properly installed. The errormessage means that the table cuyahoga_user cannot be found. Can you look into the database and see if there's a table cuyahoga_user, or maybe there isn't a database installed at all?

When going to the install.aspx, it should ask to install Cuyahoga (and installs the database for you)
# cipher_nemo 8/20/2007 11:28 PM
Thanks for the reply. :)

I'll take a look at the database tonight or tomorrow night. I'm at work right now, and my university here blocks the ports that MS SQL Server Management Studio Express (or SQL Server Enterprise Manager) uses to connect to my database's server. Hopefully I can find out if the database is getting created, and if so, if it's getting properly created.