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

Update from 2012 to 2015

1 Answer 69 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.
Lukas
Top achievements
Rank 1
Lukas asked on 02 Dec 2015, 12:18 PM

Hi,

I want to update my project from the old version of Telerik.DataAccess 2012 to the last version 2015.

The migration to the new version and the switch to nuget was successfull, for the most of my solutions but there are two very old Visual Basic Solutions that don't want to work properly. I nthe Post-Build steps I want to enhance the compiled assemblies by the venhance.exe from the Telerik.DataAccess.Fluent-package with the following command: 

"$(SolutionDir)\packages\Telerik.DataAccess.Fluent.2015.3.926.1\tools\enhancer\VEnhance.exe" -assembly:"$(TargetPath)" -config:"$(ProjectDir)app.config" -debug+ -verbose+ -verboseMode:1  -reference:"$(TargetDir)XXXXX.dll"

After a while I get the message: "venhance.exe has stopped working"

The following Expection+Stacktrace appears:

Telerik AD Telerik Data Access Enhancer, Version 2015.3.926.1
Copyright (C) 1996-2015 Telerik AD
Das Objekt des Typs "Mono.Cecil.TypeReference" kann nicht in Typ "Mono.Cecil.TypeDefinition" umgewandelt werden.
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.ProcessAssembly()
   bei Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
   bei Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()
   bei Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.DomainRun(Boolean createDomain)
   bei Telerik.OpenAccess.Sdk.Enhancer.Enhancer.ConsoleRun(EnhancerSettings settings)
InnerException:
Das Objekt des Typs "Mono.Cecil.TypeReference" kann nicht in Typ "Mono.Cecil.TypeDefinition" umgewandelt werden.
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilPersistentBuilder.Intercept(MethodDefinition method)
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.InterceptPersistentFieldAccess(TypeDefinition typedef)
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.InterceptPersistentFieldAccess()
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.ProcessAssembly()

Unbehandelte Ausnahme: Telerik.OpenAccess.Sdk.Enhancer.EnhancerException: Das Objekt des Typs "Mono.Cecil.TypeReference" kann nicht in Typ "Mono.Cecil.TypeDefinition" umgewandelt werden. ---> System.InvalidCastException: Das Objekt des Typs "Mono.Cecil.TypeReference" kann nicht in Typ "Mono.Cecil.TypeDefinition" umgewandelt werden.
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilPersistentBuilder.Intercept(MethodDefinition method)
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.InterceptPersistentFieldAccess(TypeDefinition typedef)
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.InterceptPersistentFieldAccess()
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.ProcessAssembly()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei Telerik.OpenAccess.Sdk.Enhancer.CecilEnhancer.ProcessAssembly()
   bei Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
   bei Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()
   bei Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.DomainRun(Boolean createDomain)
   bei Telerik.OpenAccess.Sdk.Enhancer.Enhancer.ConsoleRun(EnhancerSettings settings)
   bei Telerik.OpenAccess.Tools.Enhancer.Main(String[] args)

Thanks and best regards from germany!

1 Answer, 1 is accepted

Sort by
0
Viktor Zhivkov
Telerik team
answered on 07 Dec 2015, 11:49 AM
Hello Lukas,

The issue you are describing is a compatibility issue between Roslyn compiler and Telerik Data Access Enhancing process. We have already implemented a fix and we are planning to release it this month.
Until that moment I suggest that you use Visual Studio 2012 to build your data layer.
I am sorry for the inconvenience, I will make sure to notify you personally when our next release is publicly available for download.

Regards,
Viktor Zhivkov
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
Data Access Free Edition
Asked by
Lukas
Top achievements
Rank 1
Answers by
Viktor Zhivkov
Telerik team
Share this question
or