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

Forums / Bugs & Issues / Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure

Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure

7 posts, 1 answered
  1. Lois
    Lois avatar
    6 posts
    Registered:
    02 Dec 2011
    16 Jul 2015
    Link to this post

    I am upgrading our Sitefinity staging site from 5.2.3800.0 to 8.0.5710.0 and am receiving the following error. Please note, I have tried adding a bindingRedirect as shown below and it has not worked.  Any help would be greatly appreciated.

          <dependentAssembly>
            <assemblyIdentity name="Telerik.Sitefinity.Analytics.Server.Infrastructure" publicKeyToken="b28c218413bdf563" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="8.0.5710.0"/>
          </dependentAssembly>​

     and also tried 

           <dependentAssembly>
            <assemblyIdentity name="Telerik.Sitefinity.Analytics.Server.Infrastructure" publicKeyToken="​null" culture="neutral" />
            <bindingRedirect oldVersion="5.2.3800.0" newVersion="8.0.5710.0"/>
          </dependentAssembly>

     

     

    ERROR:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------


    Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' 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.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' 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.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' 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.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       Telerik.Sitefinity.Analytics.Server.DependencyResolution.DependencyRegistrar.EnsureDependenciesRegistered(String siteRootFilePath) +0
       Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule.Init(HttpApplication application) +73
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +517
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

    [HttpException (0x80004005): Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9173056
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031 

     

     

     

  2. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    Registered:
    01 Jun 2015
    16 Jul 2015
    Link to this post

    Note: "Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies."

     

    The binding redirect might not work if the problem is that it can't find a dependent assembly. This article will help you find more details about the cause of the error:

    Back to Basics: Using Fusion Log Viewer to Debug Obscure Loader Errors

     

    If this is a known issue, hopefully one of the Telerik team will guide you, but either way, good luck.

  3. Lois
    Lois avatar
    6 posts
    Registered:
    02 Dec 2011
    16 Jul 2015
    Link to this post
    Thank you RJ. I hadn't thought of that. I will read through the link and let you know if it helps in finding the issue!
  4. Lois
    Lois avatar
    6 posts
    Registered:
    02 Dec 2011
    16 Jul 2015
    Link to this post

    Hi again.

    Here is the output of the log. I am not sure of where to go from here. Any suggestions?

    ThThe operation failed.
    Bind result: hr = 0x80131040. No description available.

    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable  C:\Windows\SysWOW64\inetsrv\w3wp.exe
    --- A detailed error log follows.

    === Pre-bind state information ===
    LOG: User = NT AUTHORITY\NETWORK SERVICE
    LOG: DisplayName = Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null
     (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/BrevardCounty.us/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\BrevardCounty.us\bin
    LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\74a637c4
    LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\74a637c4
    LOG: AppName = ac95f864
    Calling assembly : Telerik.Sitefinity.Analytics.Server.DependencyResolution, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\inetpub\wwwroot\BrevardCounty.us\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/74a637c4/ac95f864/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/74a637c4/ac95f864/Telerik.Sitefinity.Analytics.Server.Infrastructure/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/BrevardCounty.us/bin/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL.
    LOG: Assembly download was successful. Attempting setup of file: C:\inetpub\wwwroot\BrevardCounty.us\bin\Telerik.Sitefinity.Analytics.Server.Infrastructure.dll
    LOG: Entering download cache setup phase.
    LOG: Assembly Name is: Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=8.0.5710.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
    ERR: The assembly reference did not match the assembly definition found.
    ERR: Setup failed with hr = 0x80131040.
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
    e operation failed. Bind result: hr = 0x80131040. No description available. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = NT AUTHORITY\NETWORK SERVICE LOG: DisplayName = Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null (Fully-specified) LOG: Appbase = file:///C:/inetpub/wwwroot/BrevardCounty.us/ LOG: Initial PrivatePath = C:\inetpub\wwwroot\BrevardCounty.us\bin LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\74a637c4 LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\74a637c4 LOG: AppName = ac95f864 Calling assembly : Telerik.Sitefinity.Analytics.Server.DependencyResolution, Version=5.2.3800.0, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\inetpub\wwwroot\BrevardCounty.us\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/74a637c4/ac95f864/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/74a637c4/ac95f864/Telerik.Sitefinity.Analytics.Server.Infrastructure/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL. LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/BrevardCounty.us/bin/Telerik.Sitefinity.Analytics.Server.Infrastructure.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\inetpub\wwwroot\BrevardCounty.us\bin\Telerik.Sitefinity.Analytics.Server.Infrastructure.dll LOG: Entering download cache setup phase. LOG: Assembly Name is: Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=8.0.5710.0, Culture=neutral, PublicKeyToken=b28c218413bdf563 WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN ERR: The assembly reference did not match the assembly definition found. ERR: Setup failed with hr = 0x80131040. ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated. ​

  5. RJ Cuthbertson
    RJ Cuthbertson avatar
    41 posts
    Registered:
    01 Jun 2015
    16 Jul 2015 in reply to Lois
    Link to this post

     The public key token doesn't match what it's looking for.

     

    LOG:
    Assembly download was successful. Attempting setup of file:
    C:\inetpub\wwwroot\BrevardCounty.us\bin\Telerik.Sitefinity.Analytics.Server.Infrastructure.dll
    LOG:
    Entering download cache setup phase.
    LOG:
    Assembly Name is: Telerik.Sitefinity.Analytics.Server.Infrastructure,
    Version=8.0.5710.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    WRN:
    Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
    ERR:
    The assembly reference did not match the assembly definition found.​

  6. Lois
    Lois avatar
    6 posts
    Registered:
    02 Dec 2011
    16 Jul 2015
    Link to this post

    Thank you again for your help RJ, I did see that. That is why I believe that my redirects are not working. Since not only the version of the DLLs changed, but the PublicKeyToken changed as well. I am not sure how to fix this problem since I can't seem to find where in my project the old DLL is referenced. 

  7. Lois
    Lois avatar
    6 posts
    Registered:
    02 Dec 2011
    16 Jul 2015
    Link to this post

    I found the issue. Thank you for your help! It was this line in the web config that was apparently causing that issue. Once removed, the licensing page showed up!

    <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution" />

    Thanks again

    Answered
7 posts, 1 answered