This question is locked. New answers and comments are not allowed.
Hi,
I was trying the Telerik OpenAccess, but bumped into the following error:
Parser Error Message: Could not load file or assembly 'Telerik.OpenAccess, Version=2011.2.1113.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)
Source File: D:\Path\to\SofiaCarRentalMvc\SofiaCarRental\web.config Line: 24
How can I fix it?
I can see that the Telerik.OpenAccess assembly I have from the SDK is of version 2012.1.301.2, but how can I know its PublicKeyToken?
Thanks
I was trying the Telerik OpenAccess, but bumped into the following error:
Parser Error Message: Could not load file or assembly 'Telerik.OpenAccess, Version=2011.2.1113.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)
Source File: D:\Path\to\SofiaCarRentalMvc\SofiaCarRental\web.config Line: 24
How can I fix it?
I can see that the Telerik.OpenAccess assembly I have from the SDK is of version 2012.1.301.2, but how can I know its PublicKeyToken?
Thanks
7 Answers, 1 is accepted
0
Hello Ohsha,
It seems that you have installed different versions of OpenAccess ORM and OpenAccess SDK. Normally this should not be a problem because the SDK is shipped with the full set of assemblies needed to run the samples. Perhaps you have updated the references and now some of them point to the installed version of OpenAccess and other point to the ones shipped with the SDK.
To fix the error, please try the following:
1. Open the %LocalAppData%\Telerik.OpenAccess.SDK\Dependencies folder, which is the folder containing all SDK dependencies. Then change all assembly references in your project to point to the assemblies in this folder.
2. If this does not help, open the SDK Browser, click Reset, then Open in Visual Studio for the selected sample. This would make a fresh copy of the sample in the %LocalAppData%\Telerik.OpenAccess.SDK folder, which should be working without any interventions from your side.
3. If the refreshed sample still does not work, please let us know, this could be a problem in the SDK which we should investigate.
Regards,
Alexander
the Telerik team
It seems that you have installed different versions of OpenAccess ORM and OpenAccess SDK. Normally this should not be a problem because the SDK is shipped with the full set of assemblies needed to run the samples. Perhaps you have updated the references and now some of them point to the installed version of OpenAccess and other point to the ones shipped with the SDK.
To fix the error, please try the following:
1. Open the %LocalAppData%\Telerik.OpenAccess.SDK\Dependencies folder, which is the folder containing all SDK dependencies. Then change all assembly references in your project to point to the assemblies in this folder.
2. If this does not help, open the SDK Browser, click Reset, then Open in Visual Studio for the selected sample. This would make a fresh copy of the sample in the %LocalAppData%\Telerik.OpenAccess.SDK folder, which should be working without any interventions from your side.
3. If the refreshed sample still does not work, please let us know, this could be a problem in the SDK which we should investigate.
Regards,
Alexander
the Telerik team
Want to use Telerik OpenAccess with SQL Azure? Download the trial version today.
0
Ohsha
Top achievements
Rank 1
answered on 09 Apr 2012, 05:00 PM
Thanks Alexander,
The versions of OpenAccess ORM and OpenAccess SDK that I installed are:
Telerik_OpenAccess_ORM_Free_Edition_2012_1_301.msi
Telerik_OpenAccess_ORM_2012_1_301_SDK.msi
I think the problem might be because I'm opening up an (old) example project that uses different versions of OpenAccess.
Will try your suggestion and post back.
thanks
The versions of OpenAccess ORM and OpenAccess SDK that I installed are:
Telerik_OpenAccess_ORM_Free_Edition_2012_1_301.msi
Telerik_OpenAccess_ORM_2012_1_301_SDK.msi
I think the problem might be because I'm opening up an (old) example project that uses different versions of OpenAccess.
Will try your suggestion and post back.
thanks
0
Ohsha
Top achievements
Rank 1
answered on 09 Apr 2012, 05:11 PM
> Will try your suggestion and post back.
Hmm...
1. I don't have the %LocalAppData%\Telerik.OpenAccess.SDK folder.
and I can't find the Dependencies folder under <Program-Files>\Telerik\OpenAccess ORM\ either.
2. "open the SDK Browser, click Reset " Please elaborate more. I tried many guesses, but still clueless what I should do.
thanks
Hmm...
1. I don't have the %LocalAppData%\Telerik.OpenAccess.SDK folder.
and I can't find the Dependencies folder under <Program-Files>\Telerik\OpenAccess ORM\ either.
2. "open the SDK Browser, click Reset " Please elaborate more. I tried many guesses, but still clueless what I should do.
thanks
0
Accepted
Hello Ohsha,
Serge
the Telerik team
Is the project you are experiencing this error from based on the SDK or is it something that you have just implemented? Usually mismatch like this can be easily resolved by refreshing the assembly references. Try the upgrade references functionality.
As to the SDK, as soon as you navigate to the Samples select one and try to either open it or run it directly the directories that you are missing will get populated. Basically we copy the source code and dependencies to the first folder. You can that rollback to the installed state by selecting Reset (note that this is per example).
Also have a look at this article that could help you in setting your project up.
Hope this helps.
Serge
the Telerik team
Want to use Telerik OpenAccess with SQL Azure? Download the trial version today.
0
Ohsha
Top achievements
Rank 1
answered on 10 Apr 2012, 02:42 PM
Yep, refreshing the assembly references solve the problem.
Thanks
Thanks
0
Justin
Top achievements
Rank 1
answered on 14 Dec 2012, 03:27 PM
I have the same problem but refreshing the references does not fix my problem. I have no references to OpenAccess in my project i have searched every line of text for OpenAccess and came up with nothing. I have even rebuilt my entire project from scratch. As soon as a ="Telerik.Web.UI" is utilized I get the error below. This error disappears after i refresh the screen once.
This problem only exists on the server I publish to. Does having old libraries in the Assembly Cache cause things like this?
-Justin
This problem only exists on the server I publish to. Does having old libraries in the Assembly Cache cause things like this?
-Justin
Server Error in '/EHSWasteMgmt' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'Telerik.OpenAccess, Version=2012.2.816.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, Version=2012.2.816.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:
Line 19: </
asp:Content
>
Line 20: <
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"MainContent"
runat
=
"server"
>
Line 21: <
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
Line 22: <
Scripts
>
Line 23: <asp:ScriptReference Assembly="Telerik.Web.UI"
Source File: E:\Inetpub\wwwroot_corp\EHSWasteMgmt\MachineVaccumRequest.aspx Line: 21
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2012.2.816.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' 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.OpenAccess, Version=2012.2.816.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)]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180
System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +399
System.Web.UI.ScriptManager..ctor() +26
Telerik.Web.UI.RadScriptManager..ctor() +50
ASP.machinevaccumrequest_aspx.__BuildControlRadScriptManager1() in E:\Inetpub\wwwroot_corp\EHSWasteMgmt\MachineVaccumRequest.aspx:21
ASP.machinevaccumrequest_aspx.__BuildControlContent2(Control __ctrl) in E:\Inetpub\wwwroot_corp\EHSWasteMgmt\MachineVaccumRequest.aspx:20
System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87
ASP.site_master.__BuildControlMainContent() in E:\Inetpub\wwwroot_corp\EHSWasteMgmt\Site.Master:77
ASP.site_master.__BuildControl__control8() in E:\Inetpub\wwwroot_corp\EHSWasteMgmt\Site.Master:23
ASP.site_master.__BuildControlTree(site_master __ctrl) in E:\Inetpub\wwwroot_corp\EHSWasteMgmt\Site.Master:1
ASP.site_master.FrameworkInitialize() +82
System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8963266
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
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
0
Hi Justin,
It seems that the old version of OpenAccess ORM is being resolved from the GAC. Could you please verify that this the case and the old assemblies are being used.
Actually you could try using binding redirect for the Telerik.OpenAccess assembly in order to avoid the issue.
Hope that helps.
Kind regards,
Damyan Bogoev
the Telerik team
It seems that the old version of OpenAccess ORM is being resolved from the GAC. Could you please verify that this the case and the old assemblies are being used.
Actually you could try using binding redirect for the Telerik.OpenAccess assembly in order to avoid the issue.
Hope that helps.
Kind regards,
Damyan Bogoev
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.