MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Upgrade 4.5 - After Upgrade The News Parts Dont work.  (Mono Support )

Viewed 27633 time(s), 3 post(s) 10/19/2011 3:42:18 PMby shawndg

Related topics

shawndg

shawndg

10/19/2011 3:42:18 PM
When I navigate to a news page I created prev by hand I get a error..

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
MonoSoftware.Web.StringExtension.Append(String url, UrlParam`1 urlParam, T value) +44
MonoSoftware.MonoX.RssEngine.RssEngine.#lj() +255
MonoSoftware.MonoX.RssEngine.RssEngine.GenerateRss() +2334
MonoSoftware.MonoX.BasePage.#Gb() +164
MonoSoftware.MonoX.BasePage.Render(HtmlTextWriter writer) +27
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4959

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Pages worked before upgrade..

I custom coded it to set the readmore page..


<%@ Page
    Language="C#"
    AutoEventWireup="True"
    CodeBehind="/Code/BaseClasses/BasePage.cs"
    Inherits="TheScene.Web.BasePage"
    Theme="Scene"
    MasterPageFile="/MonoX/MasterPages/ThePittsburghSceneHeader.master"
%>
         
<%@ MasterType TypeName="MonoSoftware.MonoX.BaseMasterPage" %>  
 
<%@ Import Namespace="MonoSoftware.MonoX.Resources" %>
<%@ Register TagPrefix="MonoX" TagName="News" Src="/MonoX/ModuleGallery/News/MainNewsModule.ascx" %>
<%@ Register Assembly="MonoX" Namespace="MonoSoftware.MonoX" TagPrefix="portal" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="cp" runat="server">  
<div class="page_header"><h97>ThePittsburghScene.com - News</h97></div>  
<div class="page_box">    
    <portal:PortalWebPartZone HeaderText="Content zone" ID="contentPartZone" runat="server" Width="100%" ChromeTemplateFile="Standard.htm">
        <ZoneTemplate>
              <MonoX:News ID="News" runat="server" ShowRating="false" ReadMorePageUrl="/Pages/NewsReader.aspx" PagerPageSize="4"></MonoX:News>
        </ZoneTemplate>
    </portal:PortalWebPartZone>
</style>
</div>
</asp:Content>


I also noticed.. when I try to add news parts to another page that loads.. I get errors then too..
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

10/19/2011 5:49:51 PM
Want to add to this..

when I use a blank page and drag the customizable news or main news part to the zone I get the following error..

System.NullReferenceException: Object reference not set to an instance of an object.
at MonoSoftware.Web.StringExtension.Append[T](String url, UrlParam`1 urlParam, T value)
at MonoSoftware.MonoX.RssEngine.RssEngine.#lj()
at MonoSoftware.MonoX.RssEngine.RssEngine.GenerateRss()
at MonoSoftware.MonoX.BasePage.#Gb()
at MonoSoftware.MonoX.BasePage.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Pops up as a msg box in MonoX

I found in the webconfig.. if I set the <add key="MonoXRssIsTurnedOn" value="true" /> to <add key="MonoXRssIsTurnedOn" value="false" /> then news starts working.. I guess this goes back to my original issue with the RSS feed not working.. a well back..
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

10/20/2011 7:14:22 AM
Hi,

this isn't a best way to handle the issue you have (by turning the RSS feed off), I have take a look at the RSS code and I think I have found an issue you get. This happens only in scenarios when you don't have properly set Url for some RSS item, it is fixed in a new release that will be available later today (I suppose we will finish the QA tasks).

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts