Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# KipBond 10/7/2005 3:02 PM
I followed the install steps, but can't get the install to work. I'm running on Fedora Core 4, with mod_mono, & PostgreSQL 8. I have successfully installed mojoPortal using mod_mono, so I am familiar with getting apache & mod_mono to work. Here's what I've done:

1) Downloaded Cuyahoga-0.9.0-src.zip

2) Unzipped to /home/www/test/

3) Created a PostgreSQL database called "cuyahoga_dev" and a "cuyahoga" user. Changed the Web.config, commenting out the MS SQL lines, and using these:
<add key="hibernate.dialect" value="NHibernate.Dialect.PostgreSQLDialect" />
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.NpgsqlDriver" />
<add key="hibernate.connection.connection_string" value="server=localhost;port=5432;database=cuyahoga_dev;uid=cuyahoga;pwd=********" />

3) Set up an Apache Virtual Host including these lines:
SetHandler mono
MonoApplications "/:/home/www/test/Web"
DirectoryIndex index.aspx default.aspx Default.aspx

NOTE: The instructions don't say to have the virtural host pointed at the "Web" subdirectory, so I tried it both with & without. However, since the Default.aspx page is in the "Web" subdirectory, I figured that was the right place to point the server to?

Then, I browse to: http://localhost/ & get:
Server Error in '/' Application
Parser Error
Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.

Error message: Cannot find type Cuyahoga.Web.Global

File name: /home/www/test/Web/Global.asax    Line: 1

Source Error:

<%@ Application Codebehind="Global.asax.cs" Inherits="Cuyahoga.Web.Global" %>

The same thing happens if I browse to: http://localhost/Admin/

Any ideas of what might be wrong... or what I can try?

Thanks!

PS: I tried several times to post this using the angle brackets ( < > ) within the "code" square brackets, but kept getting the following error:
500 An error occured:
A potentially dangerous Request.Form value was detected from the client (p:_ctl1:Forum1:_ctl0:edit="... [code]

So, I had to use < & &rt; instead.
# martijnb 10/7/2005 3:49 PM
The error indicates that the application is unable to find the compiled .dll. On Mono you have to build the sources first before running with NAnt. I missed this build step in the list of things you've done.
Maybe you can try the binary distribution and see if that works on Mono. It's already built with VS.NET on Windows, but in most occasions these binaries will work on Mono. It's not tested though.

About the angle brackets: it's caused by a security check of ASP.NET to prevent scripting attacks. I could turn off this check, but I'd rather not for obvious reasons.
# KipBond 10/12/2005 11:19 AM
martijnbMaybe you can try the binary distribution and see if that works on Mono. It's already built with VS.NET on Windows, but in most occasions these binaries will work on Mono. It's not tested though.

I was trying the binary distribution. Not sure why it's not working. :-?
# martijnb 10/12/2005 12:27 PM
You mentioned:
1) Downloaded Cuyahoga-0.9.0-src.zip

That's the source distribution. Anyway I don't know if the binary distribution works out of the box on Mono. Perhaps you could try to build the source and see if that works.

Good luck!