Hmm, this could be a bug in the latest svn of mono. I'm running one that is several weeks old using mojoportal 20050530 and pgsql and not experiencing this.
I don't see how it could have anything to do with the data layer. It looks like the error is happening in System.We.HttpUtility.HtmlDecode(String s) and its acting like no string is passed but it is not possible that the mojoportal code is passing anything other than a string
the error occurs in Web/Modules/HtmlModule.ascx.cs in this snip:
HtmlContent html = new HtmlContent(ModuleID);
??? ??? ??? if(html.Body.Length > 0)
??? ??? ??? {
??? ?? ?? ?? ?? // this is the offending line
??? ??? ??? ??? tdHtmlHolder.Controls.Add(new LiteralControl(Server.HtmlDecode(html.Body)));
??? ??? ??? }
note that in the HtmlContent class the Body is not only defined as a string but also initialized to an empty string and before making the call to Server.HtmlDecode we are checking the length of the string and it is greater than 0 so at this point you already have data from the database.
You may want to try commenting out that line in mojoportal and seeing if you get past this error. Maybe if you get mono and xsp again from svn it will be fixed. I will try the latest svn of mono myself tomorrow and see if it breaks my test site. If we determine this is a bug in mono it should be easy to make a test case to submit with the bug report.
Are you just using xsp? I am using mod_mono under apache but I doubt that makes a difference, mojoportal has always run fine under xsp.
You might also try making a simple aspx page and see if it works using something like
string test = Server.HtmlDecode("
Hello Html");
if that causes an error it has to be a regression in mono
Keep me posted if you find any more info and I'll post again tomorrow after I have time to try some things.
Thanks,
Joe