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 )

57739 put(a) pogledan, 3 odgovor(a) 19.10.2011. 15:42:18Kreirao(la) shawndg


19.10.2011. 15:42:18
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

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
<%@ 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> - News</h97></div>  
<div class="page_box">    
    <portal:PortalWebPartZone HeaderText="Content zone" ID="contentPartZone" runat="server" Width="100%" ChromeTemplateFile="Standard.htm">
              <MonoX:News ID="News" runat="server" ShowRating="false" ReadMorePageUrl="/Pages/NewsReader.aspx" PagerPageSize="4"></MonoX:News>

I also noticed.. when I try to add news parts to another page that loads.. I get errors then too..
Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava


19.10.2011. 17:49:51
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..
Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava


20.10.2011. 7:14:22

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).

Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava