Help with evaluating mojoPortal

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/21/2005 11:45:41 PM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

On a newly installed Fedora Core 2 server, with a functioning apache-2.0.51-3.0, mysql-server-4.1.8-1 and mono-1.0.6-1.novell.9.1 I'm experiencing the following error.

Server error in '/mojoportal' application
Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an object
in <0x000d1> mojoPortal.Web.MasterPage:.ctor ()
in <0x00031> ASP.Default_aspx:__BuildControl_MPContainer ()
in <0x0001f> ASP.Default_aspx:__BuildControlTree (System.Web.UI.Control)
in <0x00025> ASP.Default_aspx:FrameworkInitialize ()
in <0x0009e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool)

My web.config file has the following changes made to it.

I can log into the mojoportal database and select * from the tables when logged in as mojo with the password mojo.

Any advice? Do you need any more information??? I'm looking for a base to start an extranet with a lot of custom modules and mojoPortal and Cuyahoga both look promising, and I'm leaning towards mojoPortal if I can get it working for testing.

Thanks.
3/22/2005 3:58:19 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

There was a bug in the release files that I fixed last night, if you downloaded prior to then please download again and let me know if that doesn't resolve the problem.
3/22/2005 6:28:34 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

I downloaded cvs revision 100, compiled, deleted the server copy, uploaded my new copy, dropped the mysql mojoportal database, created a new mojoportal database, ran the 1, 2, 3, 4 sql scripts.
I commented out "ConnectionString", "postgresqlConnectionString" and "PostgreSQLConnectionString" keys in the Web.config file and configured the "mySqlConnectionString" key to my MySql settings.
Stopped and restarted Apache and I get the same error.
7
Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an object
in <0x000d1> mojoPortal.Web.MasterPage:.ctor ()
in <0x00031> ASP.Default_aspx:__BuildControl_MPContainer ()
in <0x0001f> ASP.Default_aspx:__BuildControlTree (System.Web.UI.Control)
in <0x00025> ASP.Default_aspx:FrameworkInitialize ()
in <0x0009e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)

How does it know what database to use (MySQL, PostgreSQL or MS SQL???) because I haven't configured that anywhere...

Any ideas nowHave I missed a stepThe only configuration I have performed is in the Web.config.
3/22/2005 6:32:39 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Ahh, you're working with the source files. The reason you are getting that error is because the last time I committed, I think I had it configured to use the MS SQL data layer. I change it back and forth depending on what I'm working on at the moment. In the Business project, remove the reference to MSSQLData and add a project reference to MySQL data, then do Rebuild Solution and deploy. That should take of it, let me know if not.
3/22/2005 6:45:39 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

The mojoportal.Business assembly already had a reference to the MySQLData assembly.

I'm missing one crucial step I'm sure.   Was I correct in commenting out the connection keys with the exception of the MySql key?  Is there any info I can give you that will help?

3/22/2005 6:49:27 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Here are all the mono components that I have installed that are related to mono if it helps.

libpixman-0.1.2-1.novell.9.1.i386.rpm
libpixman-devel-0.1.2-1.novell.9.1.i386.rpm
libtiff-3.5.7-22.fc2.i386.rpm
libungif_4.1.0-17.1_i386.rpm
cairo-0.3.0-0.novell.9.1.i386.rpm
libicu26-2.6.2-1.ximian.11.0.i386.rpm
mono-core-1.0.6-1.novell.9.1.i386.rpm
libgdiplus-1.0.5-1.novell.9.1.i386.rpm
mono-devel-1.0.6-1.novell.9.1.i386.rpm
mono-web-1.0.6-1.novell.9.1.i386.rpm
mono-winforms-1.0.6-1.novell.9.1.i386.rpm
mono-data-1.0.6-1.novell.9.1.i386.rpm
bytefx-data-mysql-1.0.6-1.novell.9.1.i386.rpm
mono-data-postgresql-1.0.6-1.novell.9.1.i386.rpm
mono-extras-1.0.6-1.novell.9.1.i386.rpm
xsp-1.0.6-1.novell.9.1.i386.rpm
mod_mono-1.0.6-1.novell.9.1.i386.rpm


3/22/2005 7:04:11 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Ok, if its using the right data layer I suspect  a data problem. Check the mp_Sites table and mp_Pages table and make sure they are populated. There should be 1 row in mp_Sites and several rows in mp_Pages.

The error makes me think its not creating a SiteSettings object which is what the MasterPages uses to know what skin to use. The missing data is the most likely cause.

3/22/2005 7:08:00 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

I gotta mention that you give better tech support than most products we actually have to pay for service...

It looks like the tables are populated.? I don't remember any errors running the sql's.
3/22/2005 7:21:23 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

The data looks right so my next line of thinking is whether the user can connect from the host. MySQL is very granular about who can connect and from what machine. If the db is on the same server as the web try using root with a blank password in the connection string. If not on the same machine, do you have a MySQL client on a remote machine that you can use to try and connect from using the mojo user?

Also make sure MySQL is configured to accept tcp/ip connections, you may need to refer to the MySQL documentation for that.

Other than that I can say I have never tested with mono 1.0.6, my understanding is the 1.1.4 branch is now considered the most stable. You might try deploying  the release files instead of the compiled sources and see if that makes any difference, though it really shouldn't. If you continue getting errors is it possible for you to un-install mono and install the 1.1.4 branch?

I try to be responsive on support, whether I can actualy help you is yet to be seen

3/22/2005 7:43:16 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Okay, just to be sure I logged into my testbed at home where I'm testing mojoportal and did the following on the mysql server.

GRANT ALL ON mojoportal.* TO mojo@'%' IDENTIFIED BY "mojo";
flush privileges;

Verified that port 3306 was open on my firewall.

Then on my office's second gateway connected to mojoportal on computerlogix.net as mojo.

[richardb@gateway2-w richardb]$ mysql -u mojo -h computerlogix.net -pmojo
Welcome to the MySQL monitor.? Commands end with ; or g.
Your MySQL connection id is 362 to server version: 4.1.8-standard

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> use mojoportal;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

I installed mono 1.06 because all the components were available by rpm for Fedora Core 2.? The newer versions were missing components and the rpm's wouldn't install because of pre-requisites.? (I formatted the server since then)

I was trying to run a quick demo to show management that we can modify to our company's needs, and having experience with csharp I want to run something like yours.? I really don't want to use php or god forbid asp.net running on IIS.(I administrate 11 servers, and the only ones that give me trouble are the 4 windows servers)

Oh well. I'll try an upgrade of mono and see what happens.Depends on how much time I have.
3/22/2005 7:52:40 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Another possible culprit is the version of MySQL. Seems like I read about some issues with the ByteFX provider and a specific version of MySQL maybe 4.1.8

Do you have  machine where you could install a newer version of MySQL and give that a try? Maybe install it on your windows machine and then try to hit it from the Fedora web server.

I'll keep pondering on my end and post back if I think of anything else.

3/22/2005 7:57:35 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Tried upgrading mono using the yum repository http://www.go-mono.com/archive/1.1.4/fedora-3-i386/ and get lots of dependency errors.  (Thats why I installed 1.06 in the first place)


[[root@gateway-c mojoportal]# yum upgrade mono-core
Gathering header information file(s) from server(s)
Server: Mono
Finding updated packages
Downloading needed headers
Finding obsoleted packages
Resolving dependencies
.Package xsp needs mono(Mono.Posix) = 1.0.5000.0, this is not available.
Package xsp needs mono(System) = 1.0.5000.0, this is not available.
Package xsp needs mono(System.Xml) = 1.0.5000.0, this is not available.
Package xsp needs mono(mscorlib) = 1.0.5000.0, this is not available.

I normally use MySql.Data 1.04 instead of ByteFX.MySQL.  I can change the reference really quickly and see what happens.  Got nothing to lose!

3/22/2005 8:03:33 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Yeah, I've been meaning to upgrade that myself but haven't had problems so far with ByteFX, if that works for you let me know and I'll upgrade asap.  Be aware if you use the new one and you get a file not found error, you need to use the source code for sharpziplib instead of the one that comes already compiled.  It may be fixed in the new version I'm not sure.
3/22/2005 8:19:50 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

It wasn't too hard to convert.? I use changed to using references and did a global search on all MySqlDbType.Int and changed to MySqlDbType.Int32.?

New error this time.

Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.IO.DirectoryNotFoundException: Directory '/usr/local/mono/mojoportal/Data/Sites/0' not found.
in <0x001cc> System.IO.StreamReader:.ctor (string,System.Text.Encoding,bool,int)
in <0x0001a> System.IO.StreamReader:.ctor (string,System.Text.Encoding)
in <0x00069> (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string,System.Text.Encoding)
in <0x0003e> System.Web.Compilation.AspGenerator:InitParser (string)
in <0x000f4> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00036> System.Web.UI.UserControlParser:CompileIntoType ()
in <0x00041> System.Web.UI.UserControlParser:GetCompiledType (string,string,System.Web.HttpContext)
in <0x000b4> System.Web.UI.TemplateControl:GetTypeFromControlPath (string)
in <0x0001d> System.Web.UI.TemplateControl:LoadControl (string)
in <0x00094> mojoPortal.Web.MasterPage:BuildMasterPage ()
in <0x0000a> mojoPortal.Web.MasterPage:OnInit (System.EventArgs)
in <0x001da> System.Web.UI.Control:InitRecursive (System.Web.UI.Control)
in <0x001aa> System.Web.UI.Control:InitRecursive (System.Web.UI.Control)
in <0x00060> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool)
There is no
/usr/local/mono/mojoportal/Data/Sites/0 directory but there is a /usr/local/mono/mojoportal/Data/Sites/1 directory.

Whats next?
3/22/2005 8:24:05 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Well thats some progress and leads me to believe ithe last error was ByteFX related, but the 0 in that path means it thinks the SiteID is 0 which makes me think its missing data in the mp_Sites or mp_Pages table. Make sure there are rows in both and the siteID in the rows is 1.

This is the same error a user had yesterday, look at the thread about upgrade error in this forum and see the page insert statements that fixed it for him.

3/22/2005 8:41:21 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Mysql is showing a connection to the database mojoportal by the user mojo so replacing ByteFX solved that problem.  The next problem is where is it getting SiteID 0???  I looked at the data and it is populated with SiteID 1 in the places you referred to earlier.

Where is this 'upgrade error' thread?  I looked around and couldn't find it... 
3/22/2005 8:58:46 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

My bad, its in the  Bugs forum

http://www.mojoportal.com/ForumThreadView.aspx?thread=61&pageindex=3

But if you have data it must be a different problem.

I'm about to go into a meeting so may not be as quick responding for a little while.

3/22/2005 1:11:51 PM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Man I tried a clean install tonight on Suse with mono 1.1.4 and at first I got the same error you were originally having but it was a permission error for the user in my connection string. The user didn't have permission to connect from localhost, once I corrected that it worked fine.

The only differences I see is the version of mono and the version of MySQL (I'm using MySQL 4.0.23)

Wish I could be more help.
3/22/2005 2:19:38 PM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

I found a place where I was using a try catch and masking the underlying error becuase it would get further and have an error different than the one that actually caused the problem.  I changed it to only trap the specific error I was looking for (one that I throw from the SiteSettings class) and let the error bubble up if not.  It was in the global.asax.cs. I've commited the change to svn at revision 101.  At least it may provide you with more accurate errors to help pinpoint the problem.
3/24/2005 3:56:40 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

I've removed all traced of mono 1.06 and installed the following to cover all bases.

bytefx-data-mysql-1.1.5-1
ibm-data-db2-1.1.5-1
libgdiplus-1.1.4-1
mod_mono-1.0.7-1
mono-basic-1.1.5-1
mono-complete-1.1.5-1
mono-core-1.1.5-1
mono-data-1.1.5-1
mono-data-oracle-1.1.5-1
mono-data-postgresql-1.1.5-1
mono-data-sqlite-1.1.5-1
mono-data-sybase-1.1.5-1
mono-devel-1.1.5-1
mono-extras-1.1.5-1
mono-ikvm-1.1.5-1
mono-jscript-1.1.5-1
mono-locale-extras-1.1.5-1
mono-web-1.1.5-1
mono-winforms-1.1.5-1
xsp-1.0.7-1

I removed my compiled version of mojoportal and replaced it with your 20050321mojoportal-AnyWebMySQLBinaries.zip distribution.

Tested to make sure mojo account can logon and select from mojoportal databases.

MySql is still version 4.1.8 because I can't downgrade it because of other projects that need it.

My current error is the following

Server error in '/mojoportal' application
Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an object
in <0x000b7> mojoPortal.Web.MasterPage:.ctor ()
in <0x00025> ASP.Default_aspx:__BuildControl_MPContainer ()
in <0x00013> ASP.Default_aspx:__BuildControlTree (System.Web.UI.Control __ctrl)
in <0x00020> ASP.Default_aspx:FrameworkInitialize ()
in <0x00089> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
in <0x00233> System.Web.HttpApplication+ExecuteHandlerState:Execute ()
in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState (IStateHandler state, System.Boolean readysync)

Where should I be looking now?
3/24/2005 4:16:22 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

As per my previous post, I think the real error is being masked by a try catch block. If you pull down the latest code and get tha global.asax.cs and put it in your solution you should see a more accurate error. I suspect database permission error, as I experienced it myself where mojo user did not have permission to connect from localhost
3/24/2005 4:31:05 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

This is the revision 101's error.? Is there any 'debug' mode we can use to log activity to a file or something to track this down?
Server error in '/mojoportal' application
Description: Error processing request.

Error Message: HTTP 500.
Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an object
in <0x000b7> mojoPortal.Web.MasterPage:.ctor ()
in <0x00025> ASP.Default_aspx:__BuildControl_MPContainer ()
in <0x00013> ASP.Default_aspx:__BuildControlTree (System.Web.UI.Control __ctrl)
in <0x00020> ASP.Default_aspx:FrameworkInitialize ()
in <0x00089> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
in <0x00233> System.Web.HttpApplication+ExecuteHandlerState:Execute ()
in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState (IStateHandler state, System.Boolean readysync)

I can connect to the mp_Sites table using the user mojo from localhost as well as from across the internet on a remote client.? (I'm experienced with MySql and don't make common mistake)

[root@gateway-c mojoportal]# mysql -u mojo -h localhost -pmojo
Welcome to the MySQL monitor.? Commands end with ; or g.
Your MySQL connection id is 21 to server version: 4.1.8-standard

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> use mojoportal;
Database changed
mysql> select * from mp_Sites;
+--------+-----------+------------+------------+---------------------+------+----------------------+----------------+-----------------------+------------------+------------------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+------------------------------------------------------------------------------+-------------------------------------------+-------------------+
| SiteID | SiteAlias | SiteName?? | Skin?????? | Logo??????????????? | Icon | AllowNewRegistration | AllowUserSkins | UseSecureRegistration | EncryptPasswords | UseSSLOnAllPages | DefaultPageKeyWords?????????????????????????????????????????????????? | DefaultPageDescription?????????????????????????????????????????????????????? | DefaultPageEncoding????????????????????????????????????????????????????????? | DefaultAdditionalMetaTags???????????????? | IsServerAdminSite |
+--------+-----------+------------+------------+---------------------+------+----------------------+----------------+-----------------------+------------------+------------------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+------------------------------------------------------------------------------+-------------------------------------------+-------------------+
|????? 1 | p_default | mojoPortal | mojo1.ascx | mojothumbnarrow.jpg |????? |??????????????????? 1 |????????????? 0 |???????????????????? 0 |??????????????? 0 |??????????????? 0 | mojoPortal, mono, linux, gnu, Joe Audette, .NET, Developer, Architect | A site of interest to .NET developers wanting to deploy ASP.NET on GNU/Linux | | |???????????????? 1 |
+--------+-----------+------------+------------+---------------------+------+----------------------+----------------+-----------------------+------------------+------------------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+------------------------------------------------------------------------------+-------------------------------------------+-------------------+
1 row in set (0.00 sec)
3/24/2005 4:59:36 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Are you able to get the site working from your windows development machine and connecting to mysql?
3/28/2005 6:00:03 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Sorry, I gave up with the evaluation and setup cuyahoga.  I needed a framework to make some custom modules for our company's internal use and I wanted to use mojoPortal but cuyahoga worked first try.

Keep up the good work.  Once you get all the hiccups worked out with the different versions of Mono and MySql I'm sure it will take off easily.

Regards

3/28/2005 6:19:20 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Cool, glad you found something that meets your needs. I have a lot of respect for the Cuyahoga framework, its an excellent project.
4/9/2005 11:00:32 AM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

The problems you were having are probably fixed now that I'm using the newer MySQL Connector instead of ByteFX. Upgrading did require code changes in the data access layer, it wasn't just a matter of swapping out ByteFX and putting in the Connector. Thats why it didn't work when you tried to switch it yourself.

Just thought I would let you know in case you would like to try mojoPortal again at some point.
4/27/2005 10:15:23 AM
Gravatar
Total Posts 92

Re: Help with evaluating mojoPortal

Just thought you should know that mojoPortal now works perfectly since dropping Bytefx.   I'm still hopping back and forth between cuyahoga and mohoPortal.  Both are perfect for my project  but both have different pro's and cons.

The amazing part was throwing a new empty module in both portals took less than 2 minutes!  You're not making it easy to decide!.

BTW, Did you write this forum from scratch or is it based on anything?
4/27/2005 3:20:10 PM
Gravatar
Total Posts 18439

Re: Help with evaluating mojoPortal

Glad you're giving it another try!

Yeah I wrote the the forums from scratch, thats why it lacks some of the features of the fancier forums. I still plan to enhance it a lot more as I get time and feedback on what it needs. I definitely want to build a stats module at the site level that would give stuff like total users, users online now, and a forum stats module with total posts, most recent posts etc. Personally I've never used stuff that some forums have like keeping track of which messages I've read so I'm keeping some things deliberately less complicated unless I get a lot of feedback requesting such things. I still need to do some work to delegate moderation either to users or roles. So let me know what you like and don't like about it, all feedback is welcome.
You must sign in to post in the forums. This thread is closed to new posts.