This is a migrated thread and some comments may be shown as answers.
Build Error in Jenkins for OpenAccess
1 Answer 63 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chathuranga
Top achievements
Rank 1
Chathuranga asked on 04 Jul 2014, 12:52 PM
I tried to build a solution in jenkins but i get the following errors.

OpenAccessEnhancerCheck:
Validating the existence of the OpenAccess ORM enhancer assembly.

C:\Program Files (x86)\Jenkins\jobs\Test\workspace\Ktv_Oms.Business\OpenAccessAssemblies\OpenAccess.targets(88,5): 

error MSB4062: The "OpenAccessDeploy" task could not be loaded from the assembly C:\Program Files %28x86%29\Jenkins\jobs\Test\workspace\\packages\OpenAccess.CodeFirst.2013.3.1211.3\tools\enhancer\enhancer.exe. Could not load file or assembly 'file:///C:\Program Files %28x86%29\Jenkins\jobs\Test\workspace\packages\OpenAccess.CodeFirst.2013.3.1211.3\tools\enhancer\enhancer.exe' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Program Files (x86)\Jenkins\jobs\Test\workspace\Ktv_Oms.Business\Ktv_Oms.Business.csproj]


error MSB4062: 

The "OpenAccessDeploy" task could not be loaded from the assembly C:\Program Files %28x86%29\Jenkins\jobs\Test\workspace\\packages\OpenAccess.CodeFirst.2013.3.1211.3\tools\enhancer\enhancer.exe. Could not load file or assembly 'file:///C:\Program Files %28x86%29\Jenkins\jobs\Test\workspace\packages\OpenAccess.CodeFirst.2013.3.1211.3\tools\enhancer\enhancer.exe' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Program Files (x86)\Jenkins\jobs\Test\workspace\Ktv_Oms.Business\Ktv_Oms.Business.csproj]

1 Answer, 1 is accepted

Sort by
0
Kaloyan Nikolov
Telerik team
answered on 09 Jul 2014, 08:37 AM
Hi Chathuranga,

It looks like the nuget is not restored during your build or probably the paths are not correct. I would suggest you go to your Workspace in Jenkins and check if the files are restored under this path:
C:\Program Files %28x86%29\Jenkins\jobs\Test\workspace\\packages\OpenAccess.CodeFirst.2013.3.1211.3\tools\enhancer\enhancer.exe

If they are not please check if you have enabled the nuget package restore during build for you solution, if it is not, enable it. Also I would suggest you to update the nugets to the current ones, you should uninstall the old version (OpenAccess.CodeFirst) of the nugets and install the Telerik.DataAccess.Fluent nuget instead. there are not braking changes between both of them. 

I hope this helps. 

Regards,
Kaloyan Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Integration with other products
Asked by
Chathuranga
Top achievements
Rank 1
Answers by
Kaloyan Nikolov
Telerik team
Share this question
or