More in this section

Forums / Bugs & Issues / OpenAccess dll Conflict Issues

OpenAccess dll Conflict Issues

5 posts, 0 answered
  1. JP
    JP avatar
    4 posts
    Registered:
    17 Mar 2011
    30 Mar 2011
    Link to this post
    Hi There,

    I'm totally new to sitefinity and telerik so be patient.

    Anyway was just trying to proof of concept a basic OpenAccess solution.

    I downloaded+installed the latest OpenAccess trial (as recommended)

    I then created a simple class project and added an entity. Which I linked to another project and could instantiate and populate the object no worries.

    I then referenced the OpenAccess class library project I created to the new test sitefinity project/website.

    There was a .dll version conflict. The existing OpenAccess .dlls that shipped with the SiteFinity installation were version Version=2010.3.1125.1 and the new OpenAcccess ones are Version=2011.1.316.10

    I though I could just tidy this up. I went into SiteFinity project and removed the following version 2010.3.1125.1 .dll's
    Telerik.OpenAccess
    Telerik.OpenAccess.35.Extensions
    Telerik.OpenAccess.Adonet2
    Telerik.OpenAccess.Runtime
    Telerik.OpenAccess.Web

    Then added the latest OpenAccess versions to the SiteFinity project.

    I can't work out which file is referencing the old version of Telerik.OpenAccess.Web or how I should setup my projects properly. Please see error below...

    I now get this error:

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


    Could not load file or assembly 'Telerik.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' 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.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' 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.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.




    === Pre-bind state information ===
    LOG: User = ADVANCE\lukec
    LOG: DisplayName = Telerik.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
     (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/AdvanceFinity/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\AdvanceFinity\bin
    Calling assembly : Telerik.Sitefinity, Version=4.0.1210.0, Culture=neutral, PublicKeyToken=b28c218413bdf563.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\inetpub\wwwroot\AdvanceFinity\web.config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Telerik.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/5fe167b7/158d2b0f/Telerik.OpenAccess.Web.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/5fe167b7/158d2b0f/Telerik.OpenAccess.Web/Telerik.OpenAccess.Web.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/AdvanceFinity/bin/Telerik.OpenAccess.Web.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: Major Version
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.


     


    Stack Trace: 




    [FileLoadException: Could not load file or assembly 'Telerik.OpenAccess.Web, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       Telerik.Sitefinity.Modules.Pages.Configuration.ToolboxesConfig.InitializePageToolbox() +0
       Telerik.Sitefinity.Modules.Pages.Configuration.ToolboxesConfig.OnPropertiesInitialized() +29
       Telerik.Sitefinity.Configuration.ConfigElement.InitializeProperties() +31
       Telerik.Sitefinity.Configuration.ConfigSection.InitializeProperties() +36
       Telerik.Sitefinity.Configuration.ConfigElement.EnsurePropertiesInitialized() +140
       Telerik.Sitefinity.Configuration.ConfigElement.get_Properties() +31
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadPropertyElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean isUpgrading) +56
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadElement(ConfigElement element, XmlReader reader, ConfigPolicyHandler policyHandler, String policyName, Boolean isUpgrading) +633
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +514
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +251
       Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +45
       Telerik.Sitefinity.Configuration.Config.Get() +206
       Telerik.Sitefinity.Modules.Newsletters.NewslettersModule.InitializeToolbox() +91
       Telerik.Sitefinity.Modules.Newsletters.NewslettersModule.Initialize(ModuleSettings settings) +145
       Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, InstallContext installContext, Boolean start) +319
       Telerik.Sitefinity.Services.SystemManager.Initialize() +1675
       Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +287
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +144
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +42
       System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
       System.Web.HttpApplication.InitModulesCommon() +80
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327


     




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






  2. Matthew
    Matthew avatar
    6 posts
    Registered:
    26 Jan 2011
    30 Mar 2011
    Link to this post
    Ditto on this. Where can I find the OpenAccess "2010.3.1125.1" installer? Having this would fix these issues when working in a class project referenced from SI 4.0 sp1. I've searched all over the web, but it looks like Telerik redirects that download link to the latest version. 

    Maybe there is a better solution to this I haven't thought of. I look forward to SI's reply.

    Matt
  3. Luke
    Luke avatar
    1 posts
    Registered:
    10 Mar 2011
    01 Apr 2011
    Link to this post
    Hi there,

    Yep I really want an answer to this too.

    I've got the correct Sitefinity-OpenAccess .dlls version that ship with Sitefinity in the project however I don't know how to start the OpenAccess GUI unless I install the new version of OpenAccess which is not compatible.

    Can we please get an answer to this?

    Actually I have the same issue with the Telerik grids etc. How do I get teh GUI for the controls. I know I can write the XAML for them but I'd like to have the menu integrated GUI too if possible.

    Cheers

    Luke
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    01 Apr 2011
    Link to this post
    First off you don't want to be replacing the OpenAccess DLLs in your webconfig :)  Thats bad news as they do some custom stuff (not sure if it's merged into the latest OA release)

    It's simple, just use Assembly binding in your webconfig

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
                <bindingRedirect oldVersion="0.0.0.0-65000.65000.65000.65000" newVersion="2011.1.315.40" />
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7CE17EEAF1D59342" />
                <bindingRedirect oldVersion="0.0.0.0-65000.65000.65000.65000" newVersion="2011.1.316.10" />
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

    So replace the newVersion="2011.1.316.10" with version in your sitefinity directory.  So it'll route requests for your newer version over to the one in the bin folder.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Apr 2011
    Link to this post
    Hello ,

    Our code base was upgraded with Open Access  build 2011.1.331.4. I suggest that you should use the regular builds that we have. The application is pretty large and its projects are enhanced against certain version of the OA. The same applies for the RadControls for ASP.NET AJAX.

    Regards,
    Ivan Dimitrov
    the Telerik team
5 posts, 0 answered