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/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
You must sign in to post in the forums. This thread is closed to new posts.