I get a bug when entering without a page.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/16/2009 2:34:29 PM
Gravatar
Total Posts 8

I get a bug when entering without a page.

When I enter with just http://test.dottnet.net/ i get this bug, http://test.dottnet.net/home.aspx works however.

2009-01-16 21:16:03,624 ERROR mojoPortal.Web.mojoBasePage - 10.0.0.1-en-US - /
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.BlogUI.BlogViewControl.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

1/16/2009 2:36:25 PM
Gravatar
Total Posts 18439

Re: I get a bug when entering without a page.

You need to have Default.aspx configured as the top default document in IIS.

Hope it helps,

Joe

1/17/2009 12:56:48 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

It is now defined as the top default document, with no change.

1/17/2009 6:07:47 AM
Gravatar
Total Posts 18439

Re: I get a bug when entering without a page.

What happens when you visit http://test.dottnet.net/Defaullt.aspx

1/17/2009 6:45:21 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

works just fine, btw the links actually work so feel free to test :)

I see this error message on the actuall page:

mojoPortal.Web.BlogUI.BlogViewControl.Page_Load(Object sender, EventArgs e) +192
System.Web.UI.Control.OnLoad(EventArgs e) +131
System.Web.UI.Control.LoadRecursive() +65
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
 

While the other error message is from the system.log page inside the application. The strange thing is I have very similar page (copy paste and set up DB again) on test.evju.biz witch dont have this problem. The problem came after I changed skins a 10-15 times...

1/17/2009 6:46:55 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

http://test.dottnet.net/Defaullt.aspx gives 404 but i assume you meant

http://test.dottnet.net/Default.aspx

This one does not work:

test.dottnet.net

1/17/2009 6:50:01 AM
Gravatar
Total Posts 18439

Re: I get a bug when entering without a page.

Well it still seems like Default.aspx is not the default document or it would be the same to request http://test.dottnet.net/ as to request http://test.dottnet.net/Default.aspx

I cannot reproduce this problem locally.

Best,

Joe

1/17/2009 6:57:39 AM
Gravatar
Total Posts 18439

Re: I get a bug when entering without a page.

When I visit your sign in page the html at the top looks strange and the title of the page. I think you have html in your site title that may be causing some problems. You should not put html in the site title like <br /> etc, it should just be text. It gets html encoded so viewing the source on your sign in page I see:

Dottnet Klubben&lt;br/&gt;&lt;i style=&quot;padding-left:50px;font-size:50%;&quot;&gt;&quot;just playing.....&lt;/i&gt; - Sign In
 inside the<title>

In fact if you click around the pages that work and look at the title bar in the browser you will see problems. Home page doesn't show it but other pages do.

You should only enter plain text as the title. If you need html, it should go in layout.master, you can remove the site title control and put your own html there.

Hope it helps,

Joe

 

1/17/2009 9:02:13 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

I removed the site title ( now its only "Dottnet klubben") but still no luck. Thanks for your help though :)

1/18/2009 5:49:10 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

I found the problem. Somehow a blog post had be registered double in the table dbo.mp_FriendlyUrls. On of those rows had a blank in the firendlyUrl but othervise the rows where identical. This resulted in the following query giving a result row:exec mp_FriendlyUrls_SelectOneByUrl @HostName='test.dottnet.net',@FriendlyUrl=''

I have a backup of the database if you want it.
 

2/17/2009 3:22:14 AM
Gravatar
Total Posts 8

Re: I get a bug when entering without a page.

This happened againg now, when another user posted a blog post, it gets 2 lines in this table, one of witch have '' as value for FriendlyUrl.

To fix the problem I have to run the following:

delete dbo.mp_FriendlyUrls where FriendlyUrl = ''

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