"Telerik.OpenAccess.MySql.Data" Reference Error
The Visual Studio projects created by the Sitefinity Project Manager include an invalid reference. Opening a project in Visual Studio and building it results in the following build error:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Telerik.OpenAccess.MySql.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
Hi Mike,
I saw the issue and yes, the following reference should be removed for now if you experience compilation issues.
<Reference Include="Telerik.OpenAccess.MySql.Data, Version=2010.2.1013.8, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Telerik.OpenAccess.MySql.Data.dll</HintPath>
</Reference>
Kind regards,
Ivan Dimitrov
the Telerik team
Had this problem. Did a global search for Telerik.OpenAccess.MySql.Data reference and never found any. So I removed the referenced assembly and built anyways.
Now, I've copied the DLL to the new 4.1 project and I'm getting this error, please help.
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.
|
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_ec1f975d253c4301b4b62df7c81519f3.Initialize(String providerName, NameValueCollection config, Type managerType) +283 Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2706 Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +117 Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +407 Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +249 Telerik.Sitefinity.Data.ManagerBase`1..ctor() +37 Telerik.Sitefinity.Data.Metadata.MetadataManager..ctor() +28 [TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241 System.Activator.CreateInstance() +103 Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +123 Telerik.Sitefinity.Data.ManagerBase`1.GetManager() +72 Telerik.Sitefinity.Data.Metadata.MetadataManager.GetManager() +27 Telerik.Sitefinity.Services.SystemManager.Initialize() +196 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +319 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +234 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 |
Hi Travis,
Maybe your problem is not related to Telerik.OpenAccess.MySql.Data, at least it is not mentioned in the error description. Let me know if I am missing something.
Can you send us the log files, generated around the time this exception is thrown? They are located in ~/App_Data/Sitefinity/Logs folder.
Greetings,
Vlad
the Telerik team
Hi,
Could you check if you haven't removed any dll from your bin folder? This will happen if you perform rebuild. The error says that there are missing assemblies that couldn't be loaded.
All the best,
Ivan Dimitrov
the Telerik team
Hello Ivan,
When I make considerable changes to my solution, I clean it then recreate the bin folder with dlls from sitefinity's "empty project" bin folder.
Otherwise I just do a build.
Hi,
The error says that there are missing assemblies that couldn't be loaded, so you are missing a dll or reference.
All the best,
Ivan Dimitrov
the Telerik team