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

Build Project Using MSBuild on a Machine Without OpenAccess Installed

5 Answers 236 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brendan Enrick
Top achievements
Rank 1
Brendan Enrick asked on 28 Aug 2009, 05:40 PM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar Kapitanov
Telerik team
answered on 01 Sep 2009, 05:40 AM
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.
0
Brendan Enrick
Top achievements
Rank 1
answered on 03 Sep 2009, 03:13 PM
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
0
Brendan Enrick
Top achievements
Rank 1
answered on 14 Sep 2009, 03:03 PM
Sorry about this extra post. I am just trying to make sure this thread doesn't fall through the cracks.
0
Accepted
Jan Blessenohl
Telerik team
answered on 14 Sep 2009, 05:05 PM
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.
0
Brendan Enrick
Top achievements
Rank 1
answered on 14 Sep 2009, 06:39 PM
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
Tags
Getting Started
Asked by
Brendan Enrick
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Brendan Enrick
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or