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

Forums / Developing with Sitefinity / Issues upgrading sitefinity 3.7 SPx to 3.7 SP4

Issues upgrading sitefinity 3.7 SPx to 3.7 SP4

3 posts, 0 answered
  1. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    20 Oct 2011
    Link to this post
    Hello,

    I have spent most of today attempting to successfully convert my project to 4.2. In order to even start that conversion, i need to convert my project to sitefinity 3.7 SP4 first. I've followed the instructions from the upgrade document, but have had little success. I've updated/replaced all the DLLs in the bin folder of my site and updated all the references in all my associated projects to refer to the new versions of the DLLs. There no references, anywhere, in my entire solution, to the old version number. Yet, I still cannot get anything through my web browser. The project compiles fine, however, I am getting the following error when looking at it in my browser.

    Server Error in '/Sitefinity' Application.

    Could not load file or assembly 'Telerik.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' 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.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' 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.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' could not be loaded.

    === Pre-bind state information ===
    LOG: User = Travis
    LOG: DisplayName = Telerik.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
     (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/JMH/Sitefinity/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\JMH\Sitefinity\bin
    Calling assembly : ImageSlider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\inetpub\wwwroot\JMH\Sitefinity\web.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: Telerik.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/sitefinity/4d694c96/11b524c5/Telerik.Framework.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/sitefinity/4d694c96/11b524c5/Telerik.Framework/Telerik.Framework.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/JMH/Sitefinity/bin/Telerik.Framework.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Build Number
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
    

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'Telerik.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
       System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +42
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +1080
       Telerik.Utilities.TypeResolutionService.GetType(String name, Boolean throwOnError) +44
       Telerik.Utilities.TypeResolutionService.ResolveType(String name, Boolean throwOnError) +47
       Telerik.ModuleManager.LoadModules(Boolean reload) +416
       Telerik.ModuleManager.LoadModules() +42
       Telerik.ModuleManager..cctor() +130
    
    [TypeInitializationException: The type initializer for 'Telerik.ModuleManager' threw an exception.]
       Telerik.ModuleManager.LoadModules(Boolean reload) +0
       Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context) +134
       System.Web.HttpApplication.InitModulesCommon() +65
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420



    As you can see, it is referencing the old version of telerik.framework (3.7.2022.2) and not the version of my DLLs (3.7.2136.2). I don't know what I'm missing, can someone please point me in the right direction?
  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    21 Oct 2011
    Link to this post
    Hello Travis,

    Can you make sure you build your custom modules ( if you have such or any other custom dll ) with the new assemblies and add them again to your project?

    Also you can see from the log:

    LOG: Post-policy reference: Telerik.Framework, Version=3.7.2022.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/sitefinity/4d694c96/11b524c5/Telerik.Framework.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/sitefinity/4d694c96/11b524c5/Telerik.Framework/Telerik.Framework.DLL.

    that the system is attempting to get certain references. Please go to all temporary directories such the above one and delete all files inside. Also make sure you are referencing the correct dlls from an exact folder.

    Kind regards,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    21 Oct 2011
    Link to this post
    Hi Victor,

    I got it working. I manually deleted my references from my sub projects (other projects in my solution) and re-added them again, and this time it worked (originally, I didn't delete the references, I just added them again). It's frustrating because I checked the version numbers on the references in the VS Properties window, and they reported the correct value (3.7.2136.2), but they were clearly still looking for 3.7.2022.2 files. Oh well, live and learn.

    Thanks for your help.
Register for webinar
3 posts, 0 answered