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

[Solved] RadStyleSheetManager fails.. but RadScriptManager Works- System.Reflection.ReflectionTypeLoadException

3 Answers 135 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 30 May 2008, 04:22 AM
This has me pulling my hair out-  really strange thing is that it was working.

I have a content page with radCombos, radToolTips, and RadEditor, with AjaxManager, RadScriptManager, and RadStyleSheetManager.  Everything was working fine until I updated web.config and .dlls to 2008.1.515.35, and now the style link:
/Telerik.Web.UI.WebResource.axd?_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.1.515.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6090bf79-f951-4c8a-a99d-8c7654f79907%3a10fb53e4%3aeef89ce9%3acaa71065%3a28133a98%3a348638f9%3a88a2ab5b    
 
 

...fails with error:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
   at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)  
   at System.Reflection.Assembly.GetTypes()  
   at Telerik.Web.UI.CombinedScriptWriter.ScriptAssemblyInfo.get_AssemblyType()  
   at Telerik.Web.UI.CombinedScriptWriter.<>c__DisplayClass2.<WriteScripts>b__0(Match match)  
   at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat)  
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator, Int32 count, Int32 startat)  
   at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator)  
   at Telerik.Web.UI.CombinedScriptWriter.WriteScripts(List`1 scriptEntries, TextWriter outputWriter)  
   at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()  
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

I've checked, rechecked my dlls, web.config registrations..  I've tried both with/without the version in the registration... double checked dll versions... which I believe is all okay-- after all, the RadScriptManager uses the same handler and it's not failing.

Script link is:
/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ContentPlaceHolder1_RadScriptManager1_HiddenField&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.1.515.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6090bf79-f951-4c8a-a99d-8c7654f79907%3a393f5085%3a34f9d57d%3a9703c1f0%3aa3f85c94%3a665c7bcf%3a526d426%3a4b40c3e6%3a9f00b839%3ab525c68b%3a70e0d5b9%3ad438be25%3a80c4ad6d  
 

If I remove the 6 stylesheets...
%3a10fb53e4%3aeef89ce9%3acaa71065%3a28133a98%3a348638f9%3a88a2ab5b  
 

from the link url, and browse it directly... it doesn't fail. (returns blank)
Add any one of the 6 to the link url, and it fails.

It works on my localhost (IIS7, remote is IIS6), and, of course, if I set:
EnableStyleSheetCombine="false" 
then, it works.

What could be wrong??

Much thanks for help on this!
David

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Jun 2008, 03:03 PM
Hello David,

This is due to a known issue with RadStyleSheetManager in medium trust. Please open a support ticket to obtain the hotfix.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 02 Jun 2008, 06:47 PM
Strange-- I thought I had it working on remote, beforehand.

Will this be addressed in the next release?

Thanks... David
0
Konstantin Petkov
Telerik team
answered on 03 Jun 2008, 06:59 AM
Hello David,

This will surely come out officially with the next release. There is no next Service Pack of RadControls for ASP.NET AJAX Q1 2008 scheduled yet, but we will most probably prepare and release one in two or three weeks.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
David
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
David
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or