Update from 2012 to 2015

2 posts, 0 answers
  1. Lukas
    Lukas avatar
    1 posts
    Member since:
    Oct 2013

    Posted 02 Dec 2015 Link to this post

    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!

  2. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 07 Dec 2015 Link to this post

    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.
  3. DevCraft banner
Back to Top