#
anaderi
Greetings!
Just managed to make Cuyahoga 1.0.0 running under Mono 1.1.18 with PostgreSQL 8.1.3. It wasn't piece of cake I must admit!
Firstly I got confused by recommendation from release nores regarding replacing <link id="CssStyleSheet" rel="stylesheet" type="text/css" runat="server" /> with literal, which didn't help much, then spent a couple of hours in MSDN & Google study.. eventually after some source modification and recompilation it has started.... but let us keep
1. after download/ unpack of sources archive I had a really nice time of nant finishing flawlessly (nant ; nant deploy)
2. modified connection string and made XSP to answer HTTP request to the site 'example.com'. So far, so good!
3. Goint to 'example.com:8080' but creation of DB has failed (System.NullReferenceException: Object reference not set to an instance of an object at Cuyahoga.Web.HttpModules.UrlHandlerModule.context_EndRequest), so I've created them by hands from SQL scripts, the last of which produced some errors, like 'psql:1.0.0.sql:9: ERROR: duplicate key violates unique constraint "uc_moduletype_classname"'
but who cares about these dumb duplicates, so I've simply ignored them.
4. Somehow I've figured out that 'example.com:8080/' will lead me nowhere and tried alternative approaches: http://example.com:8080/Admin/
http://example.com:8080/Install/Install.aspx
Thanks God the latter seemed to work well!
Even though it failed to create a default site it has asked for admin password, so now we've got reasonable excuse to try to login.
5. Going to http://example.com:8080/Admin/, entering admin/passwd
results in another cryptic exception! Which says:
System.Exception: Unable to log in user 'admin': Row was updated or deleted by another transaction
thankfully this problem was well documented and Google knew the answer (http://www.cuyahoga-project.org/13/view.aspx?g=posts&t=206)!
6. Next error message has costed a couple of hours of Cuyahoga internals study. So I've fixed the bug, but I cannot understand how does it work for everybody else?!?
Essentially exception was telling that HtmlLink class cannot be cast to HtmlGenericControl ... I've tried to approach from various ways to this problem, but the one that has succeded was patching Web/UI/BasePageControl.cs, so CssStyleSheet property became:
protected System.Web.UI.HtmlControls.HtmlLink CssStyleSheet;
7. So after nant build http://example.com:8080/Admin/ has eventually soothed my frustration. The only confusion I'd like to express is about BasePageControl.cs file which hasn't been modified since initial commit to SVN! How does it happen to work for others??
Maybe I've missed something from the documentation? and there are niced ways to accomplish installation? Any guidance would be appreciated -)
Just managed to make Cuyahoga 1.0.0 running under Mono 1.1.18 with PostgreSQL 8.1.3. It wasn't piece of cake I must admit!
Firstly I got confused by recommendation from release nores regarding replacing <link id="CssStyleSheet" rel="stylesheet" type="text/css" runat="server" /> with literal, which didn't help much, then spent a couple of hours in MSDN & Google study.. eventually after some source modification and recompilation it has started.... but let us keep
1. after download/ unpack of sources archive I had a really nice time of nant finishing flawlessly (nant ; nant deploy)
2. modified connection string and made XSP to answer HTTP request to the site 'example.com'. So far, so good!
3. Goint to 'example.com:8080' but creation of DB has failed (System.NullReferenceException: Object reference not set to an instance of an object at Cuyahoga.Web.HttpModules.UrlHandlerModule.context_EndRequest), so I've created them by hands from SQL scripts, the last of which produced some errors, like 'psql:1.0.0.sql:9: ERROR: duplicate key violates unique constraint "uc_moduletype_classname"'
but who cares about these dumb duplicates, so I've simply ignored them.
4. Somehow I've figured out that 'example.com:8080/' will lead me nowhere and tried alternative approaches: http://example.com:8080/Admin/
http://example.com:8080/Install/Install.aspx
Thanks God the latter seemed to work well!
Even though it failed to create a default site it has asked for admin password, so now we've got reasonable excuse to try to login.
5. Going to http://example.com:8080/Admin/, entering admin/passwd
results in another cryptic exception! Which says:
System.Exception: Unable to log in user 'admin': Row was updated or deleted by another transaction
thankfully this problem was well documented and Google knew the answer (http://www.cuyahoga-project.org/13/view.aspx?g=posts&t=206)!
6. Next error message has costed a couple of hours of Cuyahoga internals study. So I've fixed the bug, but I cannot understand how does it work for everybody else?!?
Essentially exception was telling that HtmlLink class cannot be cast to HtmlGenericControl ... I've tried to approach from various ways to this problem, but the one that has succeded was patching Web/UI/BasePageControl.cs, so CssStyleSheet property became:
protected System.Web.UI.HtmlControls.HtmlLink CssStyleSheet;
7. So after nant build http://example.com:8080/Admin/ has eventually soothed my frustration. The only confusion I'd like to express is about BasePageControl.cs file which hasn't been modified since initial commit to SVN! How does it happen to work for others??
Maybe I've missed something from the documentation? and there are niced ways to accomplish installation? Any guidance would be appreciated -)