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

Serialization error when StateServer is SqlServer

3 Answers 70 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Andreas Dahlén
Top achievements
Rank 1
Andreas Dahlén asked on 09 Oct 2012, 11:01 AM
Hi!



We are going to use RadStyleSheetManager to merge and comress all stylesheets.
But when activating external stylesheets we get a serialization error.  If we don't use external stylesheets it works fine.
We are using SqlServer as StateServer.
Telerik version: 2012.2.918.35
See attached file for error.

Any ideas on what could be wrong?

Below are codesnippets from web.config and the aspx-page.

Web.Config
<appSettings>
  <add key="Telerik.Web.UI.StyleSheetFolders" value="/Style" />
</appSettings>
 
<system.web>
  <httpHandlers>
    <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.2.918.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
  </httpHandlers>
</system.web>

aspx-page
<telerik:RadStyleSheetManager runat="server" ID="rssm">
    <StyleSheets>
        <telerik:StyleSheetReference Path="core.css" />
    </StyleSheets>
</telerik:RadStyleSheetManager>

3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 12 Oct 2012, 11:31 AM
Hello Andreas,

Interesting, it seems that for some reason ASP.NET is trying to serialize our InsecureExternalStyleSheetException class which is an exception class, which RadStyleSheetManager uses when validating external style sheets. We will need to troubleshoot that one a bit more before stating what might be going wrong. I will write a follow up in this thread after we conduct some tests with a StateServer.

Greetings,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andreas Dahlén
Top achievements
Rank 1
answered on 02 Nov 2012, 06:13 AM
Hi!

Have you found anything?
0
Genady Sergeev
Telerik team
answered on 07 Nov 2012, 08:26 AM
Hello Andreas,

We didn't have time so far to test what is going wrong. I will update the thread by the end of the week.

Regards,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Andreas Dahlén
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Andreas Dahlén
Top achievements
Rank 1
Share this question
or