Initial Welcome Text Caused Unhandled Exception?

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.
4/22/2008 2:28:15 PM
Gravatar
Total Posts 9

Initial Welcome Text Caused Unhandled Exception?

I installed a clean installation using SQLite as the data source. I setup the image gallert directory, added some plain users, a newsletter.

I then modified the welcome text page. When I clicked [update], I saw an admin UI with mojoPortal talking about what it was updating... When it was done, I was back at the welcome text area, with none of my text there. I re-did the text, clicked [update], and got a general web site failure message.

 

Looking at the currentlog.config file shows this:

 

2008-04-22 12:31:49,750 [1316] INFO mojoPortal.Web.Global [(null)] - Application Started.
2008-04-22 13:53:24,562 [2388] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_End
2008-04-22 14:01:20,281 [1316] INFO mojoPortal.Web.Global [(null)] - Application Started.
2008-04-22 14:02:59,531 [1316] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_End
2008-04-22 14:03:59,125 [872] INFO mojoPortal.Web.Global [(null)] - Application Started.
2008-04-22 14:14:44,765 [872] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_End
2008-04-22 14:15:03,796 [2040] INFO mojoPortal.Web.Global [(null)] - Application Started.
2008-04-22 14:17:29,609 [872] INFO mojoPortal.Web.Global [(null)] - Global.asax.cs Application_End
2008-04-22 14:17:44,140 [2040] INFO mojoPortal.Web.Global [(null)] - Application Started.
2008-04-22 15:21:31,437 [1412] ERROR mojoPortal.Web.mojoBasePage [(null)] - 192.168.1.55-en-US - /HtmlEdit.aspx?mid=1&pageid=1
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-04-22 15:21:31,718 [1412] INFO mojoPortal.Web.mojoBasePage [(null)] - detected need for upgrade so redirecting to setup
2008-04-22 15:22:08,937 [1412] WARN mojoPortal.Web.UI.Pages.SetupHome [(null)] - Did not try to upgrade the application pollfeature-byChristianFredh because the folder C:\Inetpub\WwwSites\www.testsite.com\Setup\applications\pollfeature-byChristianFredh\SchemaUpgradeScripts\sqlite\ does not exist.
2008-04-22 15:22:09,125 [1412] WARN mojoPortal.Web.UI.Pages.SetupHome [(null)] - Did not try to upgrade the application surveyfeature because the folder C:\Inetpub\WwwSites\www.testsite.com\Setup\applications\surveyfeature\SchemaUpgradeScripts\sqlite\ does not exist.
2008-04-22 15:22:09,328 [1412] WARN mojoPortal.Web.UI.Pages.SetupHome [(null)] - Did not try to upgrade the application webstore because the folder C:\Inetpub\WwwSites\www.testsite.com\Setup\applications\webstore\SchemaUpgradeScripts\sqlite\ does not exist.
2008-04-22 15:23:06,828 [2040] ERROR mojoPortal.Web.mojoBasePage [(null)] - 192.168.1.55-en-US - /HtmlEdit.aspx?mid=1&pageid=1
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-04-22 15:23:07,125 [2040] ERROR mojoPortal.Web.Global [(null)] - 192.168.1.55-en-US - /HtmlEdit.aspx?mid=1&pageid=1
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-04-22 15:23:07,171 [2040] ERROR mojoPortal.Web.Global [(null)] - 192.168.1.55-en-US - /HtmlEdit.aspx?mid=1&pageid=1
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.ContentUI.EditHtml.btnUpdate_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.htmledit_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b0a1868e\bce22093\App_Web_8jc751g7.1.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

4/24/2008 7:45:34 AM
Gravatar
Total Posts 18439

Re: Initial Welcome Text Caused Unhandled Exception?

Hi,

The only thing I can think of that might be causing a null reference exception when you click that button is the index builder providers which are used to populate the search index.

First thing I would try is do a search, this will initialize the search index if it isn't already created.

Next I would look and make sure the config files are present and not empty (ie they should be about 1kb each). They should be in the Web/Setup/indexbuilderconfig folder.

Hope it helps,

Joe

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