OpenAccess

Posted by Community Admin on 03-Aug-2018 00:36

OpenAccess

All Replies

Posted by Community Admin on 08-Oct-2010 00:00

Hi,

I am trying to integrate a class library that uses a installed licensed version of OpenAccess assembly different to the one in Sitefinty 4 Beta 2, I have tried setting copy local to false and specific version but keep getting the same error when running the custom control within the Sitefinity project.

Could not load file or assembly 'Telerik.OpenAccess.35.Extensions, Version=2010.2.804.5, 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)

Regards,

Neil

Posted by Community Admin on 09-Oct-2010 00:00

Try editing the web.config

In the runtime->assemblybinding node add something like this

<dependentAssembly>
                <assemblyIdentity name="Telerik.OpenAccess.35.Extensions" publicKeyToken="7ce17eeaf1d59342" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="2010.2.804.5"/>
            </dependentAssembly>

SHOULD send all the requests over to the latest version...

Posted by Community Admin on 09-Oct-2010 00:00

Thanks Steve,


That has addressed the assembly conflict now facing another issue. Same process has been tested in a separate web application with referenced class library and runs without errors. However when Sitefinity is the web application it errors.

Method not found: 'Void Telerik.OpenAccess.OpenAccessContext..ctor(System.String, Telerik.OpenAccess.BackendConfiguration, Telerik.OpenAccess.Metadata.MetadataSource)'.
 
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.MissingMethodException: Method not found: 'Void Telerik.OpenAccess.OpenAccessContext..ctor(System.String, Telerik.OpenAccess.BackendConfiguration, Telerik.OpenAccess.Metadata.MetadataSource)'.
 
Source Error:
 
 
Line 32:        public TestOAContext()
Line 33:            :base(connectionStringName, backend, metadataSource)
Line 34:       
Line 35:       
Line 36:        public TestOAContext(string connection)
 
Source File: C:\DEV\Testing\Sitefinity\Beta\ClassProjects\testOA\EntityDiagrams.cs    Line: 34
 
Stack Trace:
 
 
[MissingMethodException: Method not found: 'Void Telerik.OpenAccess.OpenAccessContext..ctor(System.String, Telerik.OpenAccess.BackendConfiguration, Telerik.OpenAccess.Metadata.MetadataSource)'.]
   testOA.TestOAContext..ctor() in C:\DEV\Testing\Sitefinity\Beta\ClassProjects\testOA\EntityDiagrams.cs:34
   SitefinityWebApp.SiteMaster..ctor() in C:\DEV\Testing\Sitefinity\Beta\sfNenit\SiteMaster.Master.cs:14
   ASP.sitemaster_master..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6596e3f1\eb1a7066\App_Web_dcdwhq2b.0.cs:0
   __ASP.FastObjectFactory_app_web_dcdwhq2b.Create_ASP_sitemaster_master() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6596e3f1\eb1a7066\App_Web_dcdwhq2b.1.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +251
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328

Best Regards,

Neil

Posted by Community Admin on 09-Oct-2010 00:00

I think they got their hands on a NEWER version than we have access to :)

I see them running 2010.2.812.2

Try changing the assembly binding to that version instead

Posted by Community Admin on 09-Oct-2010 00:00

Hi Steve,


Thanks for the pointer in your first post, I needed to add the Telerik.OpenAccess also.

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="Telerik.OpenAccess.35.Extensions"
                              publicKeyToken="7ce17eeaf1d59342"
                              culture="neutral" />
            <!-- Assembly versions can be redirected in application,
            publisher policy, or machine configuration files. -->
            <bindingRedirect oldVersion="2010.2.804.5"
                             newVersion="2010.2.812.2" />
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="Telerik.OpenAccess"
                              publicKeyToken="7ce17eeaf1d59342"
                              culture="neutral"/>
            <bindingRedirect oldVersion="2010.2.804.5"
                             newVersion="2010.2.812.2"/>
        </dependentAssembly>
    </assemblyBinding>
</runtime>

Best Regards,

Neil

This thread is closed