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.

Problem with Events.ascx module (Activity stream web part)  (Mono Support )

Viewed 41767 time(s), 8 post(s) 4/17/2013 11:00:22 AMby sonap

Related topics

sonap

sonap

4/17/2013 11:05:19 AM
Hello,

I have a problem in my Dashboard.aspx page:
After moving between my theme and the default theme (through the page properties in admin) suddently the Dashboard page crashed displaying an error message (see attachment).
The problem is identified to the events.ascx module and the corresponding web part (when trying to add it dynamically instead of hardcoding it. When I remove it from my page, everything works fine. Therefore, I noticed that the problem with this web part keeps on on any page I try to insert it.

I have to say that I replaced my theme's templates folder (App_Templates/myproject/) with the new one from the Default folder (because I had recently updated the monoX to the recent version). Might this replace  have caused the problem?
(being more specific: I have a folder "Myproject" in App_Templates that was a copy of the Default templates folder. Lately I moved to an upgrated monoX and while trying to restyle Dashboard page I copied the new version's Default template folder to "Myproject" template folder. )
This content has not been rated yet. 
475 Reputation 52 Total posts
sonap

sonap

4/17/2013 11:19:03 AM
I place the dashboard page also

Thank you :)
This content has not been rated yet. 
475 Reputation 52 Total posts
sonap

sonap

4/17/2013 12:24:21 PM
The Problem pasted (in text format)
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.Core.StringExtension.Replace(String value, String oldValue, String newValue, StringComparison comparisonType) +33
   MonoSoftware.MonoX.ModuleGallery.SocialNetworking.Events.FormatEventText(SnEventEntity eventEntity) +3809
   MonoSoftware.MonoX.ModuleGallery.SocialNetworking.Events.ParseTemplateTags(Hashtable tags, SnEventEntity eventEntity, VelocityContext velocityContext) +959
   MonoSoftware.MonoX.ModuleGallery.SocialNetworking.Events.lvItems_OnItemDataBound(Object sender, ListViewItemEventArgs e) +394
   System.Web.UI.WebControls.ListView.OnItemDataBound(ListViewItemEventArgs e) +95
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +868
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1037
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +35
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +138
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +29
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +154
   System.Web.UI.WebControls.ListView.PerformSelect() +103
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +71
   MonoSoftware.MonoX.Utilities.PagerUtility.BindPager(Pager pager, PagerAction bindDelegate, Control pagedControl, Object dataSource, Int32 pagerVirtualCount, Control warningControl) +322
   MonoSoftware.MonoX.Utilities.PagerUtility.BindPager(Pager pager, PagerAction bindDelegate, Control pagedControl, Object dataSource, Int32 pagerVirtualCount) +25
   MonoSoftware.MonoX.ModuleGallery.SocialNetworking.Events.BindData() +799
   MonoSoftware.MonoX.ModuleGallery.SocialNetworking.Events.OnLoad(EventArgs e) +28
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Control.LoadRecursive() +168
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2646
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034
This content has not been rated yet. 
475 Reputation 52 Total posts
sonap

sonap

4/17/2013 12:38:57 PM
Also not to forget to say that when trying to change the Dashboard page's theme and Master It wouldn't allow me to do so:
"The master page and/or theme you entered are not compatible with the selected page."

This was the beggining of the problem...
This content has not been rated yet. 
475 Reputation 52 Total posts
sonap

sonap

4/18/2013 7:59:07 AM
I found a possible workaround that still has some issues though. Please see here if interested:
http://www.mono-software.com/Mono/Pages/Discussion/dtopic/0Nhtt3mkjESBJ6C-AR2bFw/Activity-stream-filtering/?dmsgId=40RZ_8NzOUGhlaGkAKQDlw#Post40RZ_8NzOUGhlaGkAKQDlw
This content has not been rated yet. 
475 Reputation 52 Total posts
imarusic

imarusic

4/18/2013 8:00:56 AM
Ok, we will review ang get back to you.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
sonap

sonap

4/18/2013 10:31:10 AM
Hello again. I am really sorry but I figured out that this might have been some short of server cache problem as I changed many properties back & forth throughthe admin.

I am not experienced at all in working on a server (especially with .NET projects) and I couldn;t figure out th eproblem easily.

Finally, I changed my web.config file in order that the application would recycle and voila! everything worked.

I don;t know wether there is a general issue with the MonoX admin panel and cache as it often throughs me messages like this "The master page and/or theme you entered are not compatible with the selected page." 

Thank you,
Panos
This content has not been rated yet. 
475 Reputation 52 Total posts
tihomir-kit

tihomir.kit

4/18/2013 12:15:09 PM
Hi Sonap, it's good to hear that it started working again.

One note - while logged in with a user that is in "Administrators" role, you will have the admin panel at the top all the time. Because of that panel, everything in the body is in an update panel which might cause strange behavior. So, you should test everything with users that are not in "Administrators" role just to make sure everything works well that way.
This content has not been rated yet. 
526 Reputation 43 Total posts