Error with 2 applications on the same WebApplication

2 posts, 0 answers
  1. Cazenave
    Cazenave avatar
    1 posts
    Member since:
    May 2014

    Posted 29 Jun 2015 Link to this post


    I'm working for a customer in France which has 2 business applications using 2 differents versions of Telerik ASP.Net Ajax on the same SharePoint WebApplication.

    On the first one, all is working properly, no errors are noticed. This one is using the oldest version of Telerik framework.

    On the second one, randomly we noticed some errors which are displayed with a correlationid (Sorry, something went wrong). In SharePoint logs, I have this error message: 

    Application error when access /_layouts/15/PF.KPI_QRVI/HomePage.aspx, Error=Telerik.Web.UI.RadImageAndTextTile with ID='RadImageAndTextTileReporting' 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.   at Telerik.Web.SkinRegistrar.GetEmbeddedSkinAttributes(ISkinnableControl control, Type controlType, Boolean designTime)     at Telerik.Web.SkinRegistrar.RegisterCssReferences(ISkinnableControl control)     at Telerik.Web.UI.RadBaseTile.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()


    I try  to set  EnableEmbeddedSkins=false in the web.config, but some controls are using embeddedskins (I think so, the two applications have been developed by 2 companies, not by myself).

     It's very difficult to diagnose this problem for me because that seems to be a random behaviour...

    Versions used : 

    - Telerik.Web.UI.Skins 2014.2.724.45

    - Telerik.Web.UI.Skins 2014.3.1024.45

    Can you help me ? Thank you !

  2. Marin
    Marin avatar
    1057 posts

    Posted 01 Jul 2015 Link to this post


    It is not recommended to use two versions on the same assembly in the same WebApplication. This is general .NET Framework limitation.
    In your particular case a telerik control is requesting an embedded skin resource from the Telerik.Web.UI.Skins assembly. Due to the fact that there are two versions of the same assembly the .NET framework cannot correctly identify which version to use, which cause the error that you see in your case. 
    That's why the recommended approach here is to host applications containing different versions of Telerik assemblies on different IIS web sites so they don't interfere with each other.
    You can also use an bindingRedirect in the web.config file to redirect all requests of different versions to the same assembly version, in this case the web application should contain references only to one assembly version.

    I hope this helps. Let me know if you have any other questions.

    Kind Regards,
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top