RadSkinManager NullReferenceException

4 posts, 0 answers
  1. Jan
    Jan avatar
    18 posts
    Member since:
    Mar 2014

    Posted 26 Jan 2015 Link to this post

    Hello,

    I'm using a Masterpage with .NET 4.0 and a RadSkinManager. Without obviously changing anything in the masterpage, I'm getting a NRE in one of my 3 content pages. The question is why is this only happening in one page and how to get RadSkinManager applied continously to all content pages?
    My masterpage head is the following:
    <head id="Head1" runat="server">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title></title>
      <telerik:RadSkinManager ID="rsm" runat="server" Skin="WebBlue"></telerik:RadSkinManager>
      <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
      <asp:ContentPlaceHolder ID="HeadContent" runat="server"></asp:ContentPlaceHolder>
    </head>

    The error:
    [NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
       Telerik.Web.UI.RadSkinManager.Page_PreRender(Object sender, EventArgs e) +67
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnPreRender(EventArgs e) +92
       System.Web.UI.Control.PreRenderRecursiveInternal() +83
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 29 Jan 2015 Link to this post

    Hi Jan,

    I have tested the provided code and everything is working fine. Could send me a runnable sample project where I could observe the issue.

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jan
    Jan avatar
    18 posts
    Member since:
    Mar 2014

    Posted 29 Jan 2015 in reply to Peter Filipov Link to this post

    Actually, after deleting the master page and recreating it, everythings here works fine too.

    But at least I'd like to know what could force such behaviour. Cleaning or recreating the project in VisualStudio didn't work at all...
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 29 Jan 2015 Link to this post

    Hello Jan,

    We have never had such issue at our side and we could not reproduce it with the provided markup. If you have runnable sample we will be able to investigate the problem deeper.

    Regards,
    Peter Filipov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top