Build Project Using MSBuild on a Machine Without OpenAccess Installed

6 posts, 2 answers
  1. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 28 Aug 2009 Link to this post

    I am trying to use OpenAccess with a continuous integration server, and my build server is using MSBuild to build the project. I am attempting to get venhance.exe to work on my class library, but I am receiving the following error message when I use MSBuild.

    The command ""tools\Telerik\venhance.exe" -verboseMode:2 "-assembly:D:\dev\MyProj\src\MyClassLibrary\bin\Debug\MyClassLibrary.dll"" exited with code 3.

    I am using the lightweight approach listed in the documentation article "How to: Enhance Projects Using MSBuild on a Machine Without OpenAccess Installed"

    I would greatly appreciate any assistance.

    Thanks,
    Brendan
  2. Answer
    Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 01 Sep 2009 Link to this post

    Hi Brendan Enrick,
    I think that the path to VEnhance is incomplete actually. Please double check as it looks like it is still a relative, not an actual path. To build a real path that is relative to your solution, you can use the standard variable ($SolutionDir) and make the path to use this as a base for relativity.


    Greetings,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 03 Sep 2009 Link to this post

    Hi Dimitar Kapitanov,

    Thank you. That worked correctly locally after I adjusted it to be a relative path using the variable.

    <OpenAccessInstallDir>$(SolutionDir)\..\tools\Telerik</OpenAccessInstallDir>

    However, the build server is still getting an error I believe having to do with the lack of OpenAccess being installed on that machine.

    I receive the following error from MSBuild.

    The command ""F:\MySolutionDir\..\util\Telerik\venhance.exe" -verboseMode:1 "-assembly:F:\MySolutionDir\OpenAccessData\bin\Debug\MyProject.OpenAccessData.dll"" exited with code -532459699.

    When running that command manually in a command prompt window I get this more descriptive error.


    Unhandled Exception: System.TypeInitializationException: The type initializer for 'Telerik.OpenAccess.Tools.Enhancer' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.OpenAccess, Version=2009.2.701.5, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
    File name: 'Telerik.OpenAccess, Version=2009.2.701.5, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342'
       at Telerik.OpenAccess.Tools.Enhancer..cctor()

    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].

       --- End of inner exception stack trace ---
       at Telerik.OpenAccess.Tools.Enhancer.Main(String[] args)


    Brendan
  5. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 14 Sep 2009 Link to this post

    Sorry about this extra post. I am just trying to make sure this thread doesn't fall through the cracks.
  6. Answer
    Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 14 Sep 2009 Link to this post

    Hello Brendan Enrick,
    The error seems to occur because you did not copy the Telerik.OpenAccess.dll to the folder where the venhance.exe is.

    Best wishes,
    Jan Blessenohl
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Brendan Enrick
    Brendan Enrick avatar
    28 posts
    Member since:
    Jul 2009

    Posted 14 Sep 2009 Link to this post

    Hi Jan,

    That did the trick. Thank you very much. I was really just taking a guess there that copying the VEnhance folder locally would work. It figures that it only nearly does.

    You should see if someone can update the documentation on how to get OpenAccess working with MSBuild on a machine without OpenAccess installed since the current incarnation of the document gives instructions that requires that OpenAccess is installed.

    I will blog the steps required to get it working so that others can follow in my footsteps.

    Best regards,
    Brendan
Back to Top
DevCraft banner