Sporadic NullReferenceException exception in RadAsyncUpload
Hey everyone,
I've installed my custom module with page and everything.
I have RadAsyncUpload control on the page.
Everything seems to work normally but sometimes when I try to open the page on the module I get this exception message:
Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Sitefinity.Web.UI.Backend.MainMenu.CreateRadMenuItemFromNode(SiteMapNode node) +2260
Telerik.Sitefinity.Web.UI.Backend.MainMenu.OnLoad(EventArgs e) +849
System.Web.UI.Control.LoadRecursive() +70
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.LoadRecursive() +189
System.Web.UI.Control.AddedControl(Control control, Int32 index) +256
Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +238
System.Web.UI.Control.EnsureChildControls() +188
System.Web.UI.Control.PreRenderRecursiveInternal() +59
System.Web.UI.Control.PreRenderRecursiveInternal() +221
System.Web.UI.Control.PreRenderRecursiveInternal() +221
System.Web.UI.Control.PreRenderRecursiveInternal() +221
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4296
The exception seems to be thrown by the RadAsyncUpload control and I'm trying to find out what's the problem here.
Rebuilding the project solve the problem temporary though.
I'm looking for permanent solution for my issue.
Any help will be greatly appreciated.
Thanks in advance!
Radoslav,
eVeliko Team
Hello Radoslav,
I have been looking into the stack trace that you sent and I notice that the exception occurs while initializing the backend MainMenu. From this I could conclude that there may be an issue with the way that you initialize the custom module. Could you make sure that you are following the instruction for installing your module:
If this doesn’t resolve your issue is it possible to share the code from your custom module so we can try to reproduce the mentioned issue.
Regards,Hello Elena,
Thanks for the reply. I checked out the link you sent me and there are small differences with mine initialization. I will change it the way it's shown in the link and see if I will get any better. If I still get the same exception I will make a post again and might share the code with you so you can try to help me. Thanks again!
Best regards,
Radoslav,
eVeliko Team