This is a migrated thread and some comments may be shown as answers.

Could not load file or assembly Telerik.OpenAccess.35.Extensions

3 Answers 340 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 03 Jun 2014, 09:26 AM
Hi Guys,

I'm new to the Telerik platform, so please excuse any apparent denseness! I'm attempting to run through the Sitefinity tutorial "Create a Jobs Module" (http://www.sitefinity.com/documentation/gettingstarted/developers-guide/how-to/how-to-create-a-jobs-module), but I believe the trouble I'm having is that an older version of OpenAccess is being referenced somewhere in the project. The error message I'm getting is:
Error   17  Could not load file or assembly 'Telerik.OpenAccess.35.Extensions, Version=2013.3.1211.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
ExceptionString:
System.IO.FileLoadException: Could not load file or assembly 'Telerik.OpenAccess.35.Extensions, Version=2013.3.1211.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
File name: 'Telerik.OpenAccess.35.Extensions, Version=2013.3.1211.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' ---> System.Exception: The referenced assembly 'C:\Users\john\Downloads\Projects\JobsModule\packages\Telerik.DataAccess.Core.2014.1.403.2\lib\net40\Telerik.OpenAccess.35.Extensions.dll' has the wrong version; expected Version=2013.3.1211.3 but found Version=2014.1.403.2.
   at Telerik.OpenAccess.SPI.AssemblyProvider.LoadFromReferences(String assemblyName)
   at Telerik.OpenAccess.SPI.AssemblyProvider.RefResolveEventHandler(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName)
   at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
   at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()
 
    C:\Users\john\Downloads\Projects\JobsModuleClass\obj\Debug\JobsModuleClass.dll  JobsModuleClass

I've tried using the bindingRedirect element in my app.config file to point towards the correct version (2014.1.403.2). I've removed the reference to Telerik.OpenAccess.35.Extensions and then inserted it again. Completely stumped now, although I'm sure it's something blindingly obvious that I'm over looking. Any help would be appreciated. Many Thanks!
John

3 Answers, 1 is accepted

Sort by
0
Ivan D. Dimitrov
Telerik team
answered on 05 Jun 2014, 09:17 AM
Hello John,

Your question has been answered in the support ticket. Feel free to share your findings with the community.

Regards,
Ivan D. Dimitrov
Telerik
 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 
0
Paresh
Top achievements
Rank 1
answered on 04 Nov 2014, 06:51 AM
I am also facing the same problem. Could you please share the fix?

Thanks,
Paresh
0
Ivan D. Dimitrov
Telerik team
answered on 04 Nov 2014, 07:33 AM
Hello all,

For your convenience I will be pasting the support thread answer:
"The exception you get is indeed related to the version of the OpenAccess.35.Extentions dll version. In my view the only reason why you have issues loading it may relate to the fact that the Documentation sample is outdated. Can you please try and set the 7.0 version Jobs Module from our GitHub repository. It is relevant to your particular version of Sitefinity and is easier to install"

Regards,
Ivan D. Dimitrov
Telerik
 
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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 
Tags
Data Access Free Edition
Asked by
John
Top achievements
Rank 1
Answers by
Ivan D. Dimitrov
Telerik team
Paresh
Top achievements
Rank 1
Share this question
or