This is a migrated thread and some comments may be shown as answers.

RadSkinManager NullReferenceException

3 Answers 82 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 26 Jan 2015, 09:52 AM
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

3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 29 Jan 2015, 09:11 AM
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.

 
0
Jan
Top achievements
Rank 1
answered on 29 Jan 2015, 09:33 AM
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...
0
Peter Filipov
Telerik team
answered on 29 Jan 2015, 11:00 AM
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.

 
Tags
SkinManager
Asked by
Jan
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Jan
Top achievements
Rank 1
Share this question
or