Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# anaderi 11/1/2006 1:47 PM (edited 11/1/2006 1:50 PM)
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" /&gt 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 -)
# martijnb 11/1/2006 3:39 PM
First of all, I'm sorry that it took so much time to get things working.
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)!

Yes, this is a nasty one. I'll have to check if this issue is fixed in the current versions of Mono or Npgsql. Did you find an older Npgsql?
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??

The fact that Mono is complaining about some HtmlLink class indicates that xsp is running with the .NET 2.0 profile (HtmlLink doesn't exist in 1.1). It should at least run with the 1.1 profile.
Maybe I've missed something from the documentation? and there are niced ways to accomplish installation? Any guidance would be appreciated -)

There used to be a time when Cuyahoga installed on Mono pretty well, but there's so much changing (and breaking) with each new version that it's too much to keep up with, unfortunately.
Your issue with HtmlLink should simply not have happened, even though you're running with the 2.0 profile. On MS ASP.NET 2.0 it runs fine and IMO, this behaviour should be the same.
# anaderi 11/1/2006 4:42 PM
Martijn,

thank you for your answer
Yes, this is a nasty one. I'll have to check if this issue is fixed in the current versions of Mono or Npgsql. Did you find an older Npgsql?

Nah, I've used one available now at mono-project.com (1.0.1?). But somehow it was satisfactory.
The fact that Mono is complaining about some HtmlLink class indicates that xsp is running with the .NET 2.0 profile (HtmlLink doesn't exist in 1.1). It should at least run with the 1.1 profile.

As for compiling/running the same code under ASP.NET 2.0 I cannot find any satisfactory explanation how can Runtime cast HtmlLink to HtmlGenericControl since they have different parents?!

Anyway my suggestion is that from compatibility point of view maybe it is reasonable to replace HtmlGenericControl with HtmlControl at BasePageControl?