+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / NewsRotator Sample

NewsRotator Sample

7 posts, 0 answered
  1. Stroika
    Stroika avatar
    5 posts
    Registered:
    15 Aug 2012
    27 Jun 2012
    Link to this post
    Hi Telerik team,

    when I followed the documentation about (installing a widget from SDK to your website) to install NewsRotator in my website I received this error when I tried to get into my website.


    Could not load file or assembly 'Telerik.Sitefinity, Version=5.0.2860.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=5.0.2860.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity, Version=5.0.2860.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Stack Trace: 

    [FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=5.0.2860.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) +0
       System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +146
       System.Web.UI.Util.GetTypeFromAssemblies(IEnumerable assemblies, String typeName, Boolean ignoreCase) +184
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +567
       Telerik.Sitefinity.Utilities.TypeConverters.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +610
       Telerik.Sitefinity.Utilities.TypeConverters.StringTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +94
       Telerik.Sitefinity.Configuration.ConfigElement.GetValueFromString(String stringValue, Type type, ConfigProperty property) +367
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadValue(XmlReader reader, String propertyName, Type definedType, ConfigProperty property) +210
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadAttributes(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew) +679
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +254
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +1159
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +343
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +577
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +379
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadCollectionElement(ConfigElementCollection collection, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +1159
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +343
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo) +577
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, UpgradingInfo upgradingInfo, Boolean isNew, Boolean validateTagName) +379
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromReader(ConfigSection section, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean checkForUpgrade, UpgradingInfo& upgradingInfo) +340
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSectionFromFile(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName, Boolean withUpgrade) +138
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +81
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +194
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +30
       Telerik.Sitefinity.Configuration.Config.Get(Boolean safeMode) +272
       Telerik.Sitefinity.Abstractions.ObjectFactory.ConfigureCaching(ConfigurationSourceBuilder configBuilder) +201
       Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +302
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +232
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +116
       System.Web.HttpApplication.InitModulesCommon() +192
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1504
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +348
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +200
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +286
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
     


    any help please?
  2. Stroika
    Stroika avatar
    5 posts
    Registered:
    15 Aug 2012
    27 Jun 2012
    Link to this post
    Problem solved.

    I had to upgrade my sitefinity from 5.0.2800 to 5.0.2860 using Sitefinity Project Manager by right clicking on the site > upgrade
    I thought I was using the final release!

    Thanks.
  3. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    06 Dec 2016
    02 Jul 2012
    Link to this post
    Hi,

    The error was caused because either the newsrotator project from Sitefinity SDK and your sitefinity project were refering to different versions of Sitefinity. The NewsRotator sample was taken form the latest SDK where the version of all samples is 5.0.2860 and this was causing the problem since newsrotator was expecting 5.0.2860, but it was 5.0.2800. There is a resolution to the problem without upgrading the project. In newsrotator project change the assembly references to point to the sitefinity assemblies located in the bin folder of your Sitefinity project this way the both project will use the same version of Sitefinity.

    Greetings,
    Stanislav Velikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  4. Stroika
    Stroika avatar
    5 posts
    Registered:
    15 Aug 2012
    04 Jul 2012
    Link to this post
    Please guide me how to do it step by step.
    I am new to sitefinity
    I have tried to do what you asked me to do.
    I opened the sitefinitywebapp > References > Telerik.Sitefinity.dll of newsrotator project 
    changed the assembly reference to 5.0.2868.0 instead of 5.0.2800.0
    am I doing it right?
  5. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    06 Dec 2016
    05 Jul 2012
    Link to this post
    Hello,

    If you project is on Sitefinity 5.0.2800 then we need to change the Sitefinity assemblies of the NewsRotator sample in visual studio to be the same version.

    In visual studio add the newsrotator project to your Sitefinity solution and expand the references dropdown of the newsrotator project. Delete the references for:
    Telerik.Sitefinity, Telerik.Sitefinity.Resources, Telerik.Sitefinity.Modules, Telerik.Sitefinity.Utilities, Telerik.OpenAccess3.5.Extensions and Telerik.OpenAccess4.0.Extensions(if you have it referenced.)
    Then right click references and "Add Reference..." -> Browse and browse to the bin folder of your Sitefinity project. Add the same referenced you have removed Telerik.Sitefinity, Telerik.Sitefinity.Resources, Telerik.Sitefinity.Modules, Telerik.Sitefinity.Utilities, Telerik.OpenAccess3.5.Extensions and Telerik.OpenAccess4.0.Extensions and click OK.
    The references are not taken from the Sitefinity project and their version now is for sure Sitefinity 5.0.2800.
    Build the newsrotator project and reference it in Sitefinity.


    All the best,
    Stanislav Velikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Hemendra
    Hemendra avatar
    1 posts
    Registered:
    07 Aug 2012
    04 Apr 2013
    Link to this post
    I am using the standard version and I don't have e-commerce module inbuilt . But I require to create a product module for which first product with image only should be displayed and then after on click on the particular product, I should get the details of the Product. Please instruct me regarding the issue how can I create the custom Product Module using the user controls.
  7. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    08 Apr 2013
    Link to this post
    Hello Hemendra,

    I believe that the Module builder is the tool best suited for your needs. Additionally I would suggest to take a look at the following webinar, which I believe you will find useful.

    Regards,
    Pavel Benov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

7 posts, 0 answered