Hi all,
I downloaded Sales Dashboard Demo and I'm not being able to run it on my local machine.
When I first tried to run it, it was referencing all assemblies in \ReferencesTRIAL\Telerik OpenAccess :
Telerik.OpenAccess35.Extensions.dll
Teleril.OpenAccess.dll
Teleril.OpenAccess.Web.dll
I got this error: Could not load file or assembly 'Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
As a second step, I installed the lastest OpenAccess version (not trial) on my local machine, which installed Telerik.OpenAccess and Telerik.OpenAccess.Config in the GAC. I just replaced the three old assemblies and also added the missing Telerik.OpenAccess.Config, version 2010.3.1125.1
Please see the attached screen shot to see the Project Properties Page.
When I tried to run the project again I got this error: Could not load file or assembly 'Telerik.OpenAccess, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
I searched everywhere in the project and I can't find 2010.3.1110.3!
I need help to put this demo running on my machine.
I'm using VS2010 Ultimate and .NET4.
Thank you,
Nuno Senica
6 Answers, 1 is accepted
Kiara
Hi,
It seems to be some issue with the current version 2010.3 1125.
I uninstalled this latest version (from disk and GAC), I clean installed the older version 2010.3.1110 and it worked fine.
I didn't get the error anymore:
"Could not load file or assembly 'Telerik.OpenAccess, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified."
Still, I would like to understand what is the issue with the latest version since I would like to use it.
Any thoughts ??
I'm cross-posting to the OpenAccess forums...
Thanks,
Nuno Senica
I replied to your other forum thread but I will provide the answer here as well, if someone else faces the same problem and reads this thread.
The problem is that the demo is referencing the assemblies with version 2010.3.1110 from the Binaries/OpenAccess folder but the enhancer from the version installed on your machine is used. The enhancer is a special tool that OpenAccess uses to inject some specific code in the assembly as a post build step and it is not possible to use OpenAccess assemblies and enhancer with different versions.
The solution would be to install the OpenAccess version you would like to use and delete the Binaries/OpenAccess folder from the project. Then fix the invalid references, so that they point to the OpenAccess assemblies installed in the GAC, and rebuild the solution. I hope that will fix the problem.
All the best,
Alexander
the Telerik team
Hi Alexander,
Thanks for your reply.
I did what you recommended:
- Uninstalled version 2010.3.1110
- Installed version 2010.3.1125
- Deleted the Binaries/OpenAccess folder from the project
- Fixed the invalid references so that they point to the OpenAccess assemblies installed in the GAC
... and when I rebuilt the solution I got this error message in the output window:
------ Build started: Project: Telerik.SalesDashboard.Data, Configuration: Debug XBAP Any CPU ------
Telerik.SalesDashboard.Data -> C:\Users\nsenica\Desktop\Downloads\SalesDashboardSource\SalesDashboard\Telerik.SalesDashboard.Data\bin\Debug XBAP\Telerik.SalesDashboard.Data.dll
Enhancement failed, see output window for more information.
OpenAccess: Error during enhance
System.IO.FileNotFoundException: Could not load file or assembly 'venhance, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
File name: 'venhance, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342'
at Telerik.OpenAccess.Sdk.Addin.Core.BuildEventHandlerBase.Enhance(VAProject _project, String projectConfigName, String platformName, String productName)
at Telerik.OpenAccess.Sdk.Addin.Core.BuildEventHandlerBase.OnBuildProjConfigDone(String ProjectName, String ProjectConfigName, String PlatformName, String SolutionConfigName, Boolean Success)
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].
at Telerik.OpenAccess.Sdk.Addin.Core.BuildEventHandlerBase.Enhance(VAProject _project, String projectConfigName, String platformName, String productName)
at Telerik.OpenAccess.Sdk.Addin.Core.BuildEventHandlerBase.OnBuildProjConfigDone(String ProjectName, String ProjectConfigName, String PlatformName, String SolutionConfigName, Boolean Success)
Build has been canceled.========== OpenAccess All: 0 succeeded, 1 failed, 6 skipped ==========
OpenAccess : Build Cancelled due to enhancement error(s).
Then, I decided to restart VS2010. That error message does not show anymore but when the App runs raises the following error message (again!) - Please see the attached file for more details:
"Could not load file or assembly 'Telerik.OpenAccess, Version=2010.3.1110.3, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified."
It seems the enhancer is still pointing to version 2010.3.1110 !?
Please let me know your recommendations.
Thank you,
Nuno Senica
Please excuse us for the delay, we are quite packed with work the days around the release. I downloaded the demo from our site, just to make sure I am testing with the latest version you have. It turned out that the demo is actually distributed with OpenAccess assemblies version 2010.1.527.1. Is it possible that you have already updated once your local project to 2010.3.1110 and that is why it requires this version?
Nevertheless, this problem seems to be caused by an outdated assembly in the bin folder of the Telerik.SalesDashboard.Web project. Please delete all assemblies from the bin folders of the Telerik.SalesDashboard.Data and Telerik.SalesDashboard.Web projects, then rebuild the solution. This should ensure that the web project is using the latest OpenAccess assemblies, which are used to build the persistent model.
All the best,
Alexander
the Telerik team
Hello Alexander,
Thank you for your reply.
I solved the issue by making sure that I was referencing assemblies version 2010.3.1125, re-creating the Data project since I wanted to update it from using reverse mapping and start using a domain model.
Thanks for your time and good luck with the upcoming release!
Nuno Senica