"Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
3/3/2010 9:54:24 AM
dmo
Gravatar
Total Posts 20

"Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hello

Here is our configuration :

  • OpenSuSE 11.2
  • Mono 2.6.1
  • Fresh install of mojoportal-2-3-3-9-pgsql-deploymentfiles-for-mono.zip

Setup passed successfully.

Here is the error when we try to see the home page :

Object reference not set to an instance of an object

Description: HTTP 500. Error processing request.

Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an object
at mojoPortal.Web.UI.mojoRating.OnInit (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.AddedControl (System.Web.UI.Control control, Int32 index) [0x00000] in <filename unknown>:0
at System.Web.UI.ControlCollection.Add (System.Web.UI.Control child) [0x00000] in <filename unknown>:0
at mojoPortal.Web.UI.CmsPage.LoadPage () [0x00000] in <filename unknown>:0
at mojoPortal.Web.UI.CmsPage.Page_Load (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0
at mojoPortal.Web.mojoBasePage.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0
at System.Web.UI.Control.LoadRecursive () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessLoad () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessPostData () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename unknown>:0
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0

Any idea ? Thanks.

3/4/2010 1:36:06 PM
Gravatar
Total Posts 18439

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hi,

Unfortunately there are major regressions in the current versions of Mono that cause mojoPortal to be majorly broken under Mono. I've reported the major issues and am told they are fixed in svn and will be fixed in the next Mono release. 

Best,

Joe

3/4/2010 3:03:53 PM
dmo
Gravatar
Total Posts 20

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hi,

Ok, thanks Joe. We'll wait for the fixes.

Michel.

3/12/2010 10:09:37 AM
dmo
Gravatar
Total Posts 20

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hi,

mono 2.6.3 (from preview repo on opensuse) tested with mojo 2.3.3.9 (Sqlite), but the same error appears. No pb I wait for the next mono release.

But I want to say that 2.3.3.6 works well, and it's a real pleasure to use it on linux.

Michel.

4/1/2010 4:08:04 PM
dmo
Gravatar
Total Posts 20

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hi,

No more pb with the last mono ; last mojo works perfectly.

Michel.

4/2/2010 10:26:05 AM
Gravatar
Total Posts 18439

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

Hi Michel,

Actually there are still significant issues under Mono 2.6.3, I put in some workarounds to prevent these issues from completely breaking the site but the issues remain.

It seems that anywhere that we use the UpdatePanel, Mono does not seem to see the controls contained inside the UpdatePanel and can throw null reference exceptions when you refer to them in code in some cases.

The biggest error was happening inside our mojoRating.ascx.cs so I had to add conditional compilation to make this control not render under Mono, so content rating system does not currently work under Mono but this kept it from causing the yellow screen of death.

Also in other places the UpdatePanel doe snot seem to update the page. For example in the PageLayout.aspx page where you add a feature to the page, the feature does not show in the list unless you refresh the page.

There may also be additional anomalies as my testing has not been exhaustive.

I could really use some help in identifying these issues and reporting them to the Mono team because I am so busy it is difficult for me to find time to focus on Mono issues.

Best,

Joe

4/22/2010 11:05:16 AM
dmo
Gravatar
Total Posts 20

Re: It works.

Thank you Joe for the precisions.

I started a new thread to expose the (little) things causing trouble. http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=22&thread=5361

If you need help for testing mojo on mono, you can ask me. I've a little dedicated OpenSuse server where I use mojoPortal for some customers' websites.

Michel.

5/23/2012 4:40:42 AM
Gravatar
Total Posts 3

Re: "Object reference not set to an instance of an object" at mojoPortal.Web.UI.mojoRating.OnInit()

I see answer for my question here, thank you very much!

You must sign in to post in the forums. This thread is closed to new posts.