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

Embedded skins assembly not found from GAC

2 Answers 154 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Giovanni asked on 18 Sep 2012, 03:23 PM
Hello,
I'm trying to develop a web part for SharePoint 2010 that use the Telerik controls.
I would like to deplay all the Telerik assembly in GAC, but I have a problem. When I run my application I receive this error (in the SharePoint 2010 logs):

System.InvalidOperationException: Telerik.Web.UI.RadFormDecorator with ID='RadFormDecorator1' was unable to find an embedded skin with the name 'Simple'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false. 

I don't use custom skins, but only default skins. If I put the assembly Telerik.Web.UI.Skins.dll in the SharePoint 80\bin directory, the web part works fine. Anyway I don't want to put the skin assembly on the bin folder because I can't support multiple version of the Telerik components and I don't know if the the destination SharePoint have already a Telerik version installed.

How can I fix this problem? Can I load the skin assembly from GAC?

Thanks

2 Answers, 1 is accepted

Sort by
0
developer1
Top achievements
Rank 1
answered on 19 Sep 2012, 04:21 PM
Hi there,
Although our exception-message differs slightly, we are facing the same problems.

Our Webpart should be activated on a SharePoint 2010 Server where old Telerik-Assemblies are already used by a thrid-partie-feature.

SharePoint loads both assemblies into its application pool according to the resourcemonitor, but our ComboBox isn't able to access it correctly.

Telerik-Version used by our component: 2012.2.724.35
Telerik-Version used by third-partie component: 2011.2.915.35

Our Exception:
Unexpected System.InvalidOperationException: Telerik.Web.UI.RadComboBox with ID='ConfigComboBox' was unable to find an embedded skin with the name 'Metro'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.    bei Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType, Boolean designTime)     bei Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl _control)     bei Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e)     bei System.Web.UI.Control.PreRenderRecursiveInternal()     bei System.Web.UI.Control.PreRenderRecursiveInternal()     bei System.Web.UI.Control.PreRenderRecursiveInte... 4b18b689-2a6f-4485-99cc-0aa8c2eb63f3...
0
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
answered on 20 Sep 2012, 07:16 AM
Hello,
I've resolved the problem in my enverinment.
The problem was pretty stupid: the skins assembly wasn't in the GAC.

Thanks
Tags
Sharepoint Integration
Asked by
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
developer1
Top achievements
Rank 1
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or