Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# fullreign 7/12/2006 1:32 AM
Where is the documentation for installing Cuyahoga with Mono. Id like to save myself a couple hours and have atleast a basic understanding on how to accomplish this ?

Ive downloaded Cuyahoga 0.9 binaries and source code.

Ive installed Mono on my server successfully. Im thinking mod_mono has NOT been installed however as when I browse to an *.aspx page its not being interpreted at all and Im just seeing the source code of the page.

Once mod_mono is installed then what ?

Do I need to build Cuyahoga from scratch ?

Best,
Anthony
# martijnb 7/12/2006 2:44 AM
Just try to get the .aspx pages to run first. The easiest way is with Mono's own xsp server. You only have to use mod_mono when you're also using Apache.

To get Cuyahoga running on Mono, grab the 1.0 release, build it with NAnt on Mono or just use the binaries. Although the binaries are compiled on Windows, they're reported to work on Mono a couple of times.
# fullreign 7/12/2006 3:51 AM
Martin

Indeed running xsp works without error. But I don't want to run the site off of port 8080 (although Im sure you can change that port) Either way, I cannot run the site of of port 80 because Im running Apache - I need to install mod_mono

So basically, just take 1.0 and drop it into root, setup the database and geverything should work your saying ?

To be quite honest, the site does seem to be working when running under xsp... NHibernate is throwing the errors it seems...

System.Reflection.TargetInvocationException: Exception has been thrown by the taret of an invocation. ---> NHibernate.ADOException: Could not create connection from Driver ---> System.Net.Sockets.SocketException: Connection refused
in <0x0012f> System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
in <0x001bb> Mono.Data.Tds.Protocol.TdsComm:.ctor (string,int,int,int,Mono.Data.Tds.Protocol.TdsVersion)
in <0x00132> Mono.Data.Tds.Protocol.Tds:.ctor (string,int,int,int,Mono.Data.Tds.Protocol.TdsVersion)
in <0x0001d> Mono.Data.Tds.Protocol.Tds70:.ctor (string,int,int,int)
in <0x00081> (wrapper remoting-invoke-with-check) Mono.Data.Tds.Protocol.Tds70:.ctor (string,int,int,int)
in <0x000ba> Mono.Data.Tds.Protocol.TdsConnectionPoolManager:CreateConnection (Mono.Data.Tds.Protocol.TdsConnectionInfo)
in <0x00032> Mono.Data.Tds.Protocol.TdsConnectionPool:CreateConnection ()
in <0x00225> Mono.Data.Tds.Protocol.TdsConnectionPool:GetConnection ()
in <0x002cc> System.Data.SqlClient.SqlConnection:Open ()
in <0x00097> NHibernate.Connection.DriverConnectionProvider:GetConnection ()
--- End of inner exception stack trace ---

in <0x000d8> NHibernate.Connection.DriverConnectionProvider:GetConnection ()
in <0x0006b> Cuyahoga.Core.Util.DatabaseUtil:GetAssemblyVersion (string)
in <0x0003b> Cuyahoga.Core.Service.DatabaseInstaller:CheckCurrentVersionInDatabase ()
in <0x000e1> Cuyahoga.Core.Service.DatabaseInstaller:.ctor (string,System.Reflection.Assembly)
in <0x00066> Cuyahoga.Web.Global:Application_Start (object,System.EventArgs)
in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00004> (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00097> System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
--- End of inner exception stack trace ---

in <0x000fb> System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x00021> System.Reflection.MethodBase:Invoke (object,object[])
in <0x000be> System.Web.HttpApplicationFactory:FireEvents (string,object,object[])
in <0x00056> System.Web.HttpApplicationFactory:FireOnAppStart (System.Web.HttpApplication)
in <0x00087> System.Web.HttpApplicationFactory:InitializeFactory (System.Web.HttpContext)
in <0x0007a> System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)
in <0x00132> System.Web.HttpRuntime:InternalExecuteRequest (System.Web.HttpWorkerRequest)
# martijnb 7/12/2006 6:33 AM
fullreignIndeed running xsp works without error. But I don't want to run the site off of port 8080 (although Im sure you can change that port) Either way, I cannot run the site of of port 80 because Im running Apache - I need to install mod_mono

That's true.
So basically, just take 1.0 and drop it into root, setup the database and geverything should work your saying ?

I think it will.
To be quite honest, the site does seem to be working when running under xsp... NHibernate is throwing the errors it seems...
System.Reflection.TargetInvocationException: Exception has been thrown by the taret of an invocation. ---> NHibernate.ADOException: Could not create connection from Driver ---> System.Net.Sockets.SocketException: Connection refused

Give the stack trace a good look: the application isn't able to connect to the database because is connection is refused.
# fullreign 7/12/2006 1:02 PM
Martin

Very true. Very good point... one which we both noticed. But that was running under XSP - that trivial error is the least of my worries. ;)

So I got mod_mono installed and working somewhat, are you familiar with its configuration on Apache by chance ?

When I run the application from root, everything is being interpreted by the mono server properly - I see all the beautiful errors... which is a good thing. BUT mono cannot see any of the subdirectories

http://www.mysite.com/Default.aspx = works
http://www.mysite.com/Install/Install.aspx = Server error in '/' application ... Cannot find '/Install/Install.aspx'.

What am I missing here ?

I know this is outside the scope of Cuyahoga... but thought you may know.

Best,
Anthony