NullReferenceException

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.
6/2/2009 11:42:25 PM
Gravatar
Total Posts 1

NullReferenceException

Vista

MSSQL 2005

Latest From SVN Trunk

Failing on

"if (siteSettings.DefaultFriendlyUrlPattern == SiteSettings.FriendlyUrlPattern.PageName)"

 

Source File: C:\Users\Ed\Documents\_odi\Mojo\Web\Components\UrlRewriter.cs Line: 196

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app) in C:\Users\Ed\Documents\_odi\Mojo\Web\Components\UrlRewriter.cs:196
mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) in C:\Users\Ed\Documents\_odi\Mojo\Web\Components\UrlRewriter.cs:72
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
 

Any thoughts???

I had successfully installed setup project built and ran about a month and a half ago. I did all the same steps, so i am inclined to think this is a bug with the latest? I saw your recent blog post and wanted to try out the new stuff.

Thanks in advance...ED
 

6/3/2009 1:17:39 AM
Gravatar
Total Posts 550

Re: NullReferenceException

Hi

I have this problem too. I set "UseUrlReWriting" to "false" and setup do fine and I can see site.But when I select home page I see this message: "We're sorry but we could not find the page you are looking for. Please try the Site Map". I return to web.config and set "UseUrlReWriting" to "true" then I can see home page of site. I think this is a bug.

Hope helps.

Asad

6/3/2009 5:04:47 AM
Gravatar
Total Posts 18439

Re: NullReferenceException

After getting latest from trunk and rebuilding the solution, did you visit /Setup/Default.aspx ?

Makes sure the row for your sites in mp_SiteSettings is not null in the column DefaultFriendlyUrlPatternEnum, it should have PageNameWithDotASPX as the value.

Hope it helps,

Joe

6/3/2009 5:46:13 AM
Gravatar
Total Posts 550

Re: NullReferenceException

Hi Joe

Yes, I update to revision 5208 and rebuild entire solution then visit /Setup/Default.aspx. I see database tables and don't see any table with mp_SiteSettings name. I see mp_SiteSettingsEx and mp_SiteSettingsExDef and don't see DefaultFriendlyUrlPatternEnum colomn in any them. Do you rename mp_SiteSettings table?.

Best,

Asad

6/3/2009 6:13:22 AM
Gravatar
Total Posts 18439

Re: NullReferenceException

I will have this fixed within a few hours. I will post again when the merge to trunk has completed. 

Best,

Joe

6/3/2009 8:52:11 AM
Gravatar
Total Posts 18439

Re: NullReferenceException

Hi Guys,

This should now be fixed if you do svn update, rebuild solution and visit setup page again.

Sorry for any inconvenience.

Best,

Joe 

8/11/2009 2:24:41 PM
Gravatar
Total Posts 12

Re: NullReferenceException

Joe,

What did you change, please?

Also, is there a documentation area that lists all the files that MUST be deployed when publishing MP?

Thanks!

-Auri

 

8/12/2009 6:37:10 AM
Gravatar
Total Posts 18439

Re: NullReferenceException

Sorry, this thread was from back in June, I don't remember what I did in June, but whatever it was was fixed. You can research the svn logs if you really need to find out changes for that time period.

If you are getting some similar error it is not likely related. Please if you are having a new issue start a new thread and post a stack trace.

I deploy the files based on their file extension using UnLeashIt.

There is some info on our FAQ page about things that are possible to leave out.

Hope it helps,

Joe

 

 

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