Error about "Object reference not set to an instance of an object"

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/25/2010 7:56:48 AM
Gravatar
Total Posts 3

Error about "Object reference not set to an instance of an object" on Linux+mono

OS: CentOS 5.4

Apache 2.2.15

Mono 2.6.3

Mysql 5.1.45

mojo 2.3.3.9

I download mojoportal-2-3-3-9-sqlite-deploymentfiles-for-mono.zip  and mojoportal-2-3-3-9-mysqldatalayer-GPL.zip. Followed the README file's directions, I combined the two files.

It seems fine on wwwroot/Setup. The followed is the page.

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
MySQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
Configuring feature Html 内容 - 00:00:00.0705830
Configuring feature 站点统计 - 00:00:00.1155840
Configuring feature Newsletter Sign Up Form - 00:00:00.1339620
Configuring feature 博客 - 00:00:00.3047200
Configuring feature 联系表单 - 00:00:00.5492120
Configuring feature 事件日历 - 00:00:00.5851530
Configuring feature RSSFeed(s) - 00:00:00.6223790
Configuring feature Flickr Slide Show - 00:00:00.6964690
Configuring feature Image Gallery (Simple Folder Version) - 00:00:00.7272710
Configuring feature 论坛 - 00:00:00.7522610
Configuring feature Google Map - 00:00:00.7809770
Configuring feature Google Translate - 00:00:00.8614440
Configuring feature Html片段包含 - 00:00:00.8698920
Configuring feature IFrame - 00:00:00.8808890
Configuring feature 图库 - 00:00:00.9172090
Configuring feature Simple List/Links - 00:00:00.9567530
Configuring feature Live Messenger Chat - 00:00:00.9836460
Configuring feature Poll - 00:00:01.0065820
Configuring feature 共享的文件 - 00:00:01.0219710
Configuring feature Survey - 00:00:01.0500870
Configuring feature Twitter Profile Widget - 00:00:01.0598350
Configuring feature Twitter Search Widget - 00:00:01.0834000
Configuring feature Xml/Xsl - 00:00:01.1276180
Ensuring all features are installed in server admin sites... - 00:00:01.1355820

--------------------------------------------------------------------------------

Setup is complete, click the link below to go to the home page.
Site Home Page


Database PlatformMySQL
Version2.3.3.9
StatusYour installation is up to date.

Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

 

When I click the 'Site Home Page', I got this error as followed.

Server Error in '/wwwroot' Application

--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.6.3 (tarball 2010年 03月 25日 星期四 09:05:23 CST); ASP.NET Version: 2.0.50727.1433

 

Do I need put up the error information from file current_log?

Thank you very much.

3/25/2010 8:02:10 AM
Gravatar
Total Posts 18444

Re: Error about "Object reference not set to an instance of an object"

Hi,

I think you should report this issue to the Mono team.

I did not know that Mono 2.6.3 has been released, I will download the VMWare image and try it myself using the latest mojo code.

Best,

Joe

3/25/2010 8:10:08 AM
Gravatar
Total Posts 3

Re: Error about "Object reference not set to an instance of an object"

Joe, You are the man.

 

Thank you for your rapid reply.

Did you mean I can try another vision of mono?

3/25/2010 8:24:01 AM
Gravatar
Total Posts 18444

Re: Error about "Object reference not set to an instance of an object"

Hi,

Things have been pretty broken for the last few Mono releases, it is always 2 steps forward and 1 step back with Mono, they don't dogfood it enough with real apps. When I saw you are using 2.6.3 I thought you were using a preview build as I did not know that the final 2.6.3 had been released. I've been waiting for it because things were broken under 2.6.1. I will report my findings after I have a chance to try it.

While I love Mono, I have never recommended anyone use it for important production sites and still don't because there are always some new issues or regressions. I don't have confidence in it base don my experience with it over the past 5 years. Occasionally a release works decently but it is always a crap shoot.

Best,

Joe

3/25/2010 9:11:31 AM
Gravatar
Total Posts 3

Re: Error about "Object reference not set to an instance of an object"

Thank you for your suggestions.

I will build a windows environment for mojo.

Thanks again.

3/25/2010 1:05:32 PM
Gravatar
Total Posts 18444

Re: Error about "Object reference not set to an instance of an object"

I just tested with the latest Mono 2.6.3 VMWare imge and I encountered errors. I was able to implement workarounds to keep it from crashing so I can now login, create pages, and edit content, but there are some things not working because of Mono bugs. Pretty much anything using an UpdatePanel is possibly broken due to Mono bugs. This issue seems to be a regression as I remember reporting a similar bug a long time ago.

At any rate, the next release of mojoPortal will kind of work on Mono 2.6.3 but mileage may vary on some features.

Best,

Joe

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