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

build on buildserver fails

9 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ibrahim Imam
Top achievements
Rank 1
Ibrahim Imam asked on 01 Jul 2010, 05:06 PM
hello


i am using tfs2010 and a buildserver to get latest sources and build the webapplication over night.
the ORM mapper is installed on the buildserver. if i open the solution in VS2010 on buildserver the build succeeds but when using the build definition it fails.

i am using the TFSBuild.proj file to configure my build and get the following error message:
C:\Program Files\MSBuild\OpenAccess.targets (96): System.ComponentModel.Win32Exception (0x80004005): Access is denied    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)    at System.Diagnostics.Process.Start()    at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)    at Telerik.OpenAccess.Tools.OpenAccessEnhancer.Execute()




i imported the OpenAccess.targets file, added the user properties to the .proj file and also  tried to disable enhancing but without success.

what i have to do to properly configure a build with ORM projects?

best regards

9 Answers, 1 is accepted

Sort by
0
Ibrahim Imam
Top achievements
Rank 1
answered on 01 Jul 2010, 07:12 PM
some additional information:

i also tried to change the file location in tfsbuild.proj ( importing a changed openaccess.targets file) but i still got the same error.

if i delete the content of the enhance target in the targets file the build succeeds.

0
Jan Blessenohl
Telerik team
answered on 02 Jul 2010, 08:31 AM
Hi Ibrahim Imam,
The tfs build process runs normally with very restricted rights. It only can access the source directory plus some system resources. Even if you have the targets file in a different dir there might not be access rights.

You can give full access to the OpenAccess install dir to the user the tfs build is executed with or you can checkin all the stuff to your tfs. In the second case you are getting independent from the installations on your developer machines as well. I would make an OpenAccess dir, checkin all files from the OpenAccess bin and sdk folder, plus the targets file. Now make all paths relative and it should work.

Best wishes,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 02 Jul 2010, 09:09 AM
hello

i already tried to give the tfsbuild user read&execute rights on the ORM installation path.
i now gave full control for the installation folder and msbuild folder (in which the targets file is located) but still get the same error.

i can build without enhancement and try the second solution (checkin to tfs) in a couple of days at the next build process reconfiguration.

if you have any other hints concerning the usual solution i'll try them out.

thanks for your fast response



0
Jan Blessenohl
Telerik team
answered on 02 Jul 2010, 10:13 AM
Hi Ibrahim Imam,
Can you login to your build machine as the tfs build user and start a VS with that credentials? Maybe you are able see more information.

Greetings,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 02 Jul 2010, 12:29 PM
i tried to use my usual login but run VS with tfsbuild permissions, works correctly
if i login with tfsbuild user and try to build i get the same error message as written above when building the project which is using ORM:

Error   1   System.ComponentModel.Win32Exception (0x80004005): Access is denied
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Telerik.OpenAccess.Tools.OpenAccessEnhancer.Execute() 

Project:
Layer_DynamicDataAccess



0
Jan Blessenohl
Telerik team
answered on 02 Jul 2010, 01:18 PM
Hi Ibrahim Imam,
Good, you can now play with the permissions and see what helps. Please keep us informed about the solution.

Kind regards,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 02 Jul 2010, 03:43 PM
i tried to give the user full control over the folders and add to various groups.

the only thing that seems to solve this issue is to add the tfsbuild user from the domain to the local administrator group of the build server.
this solution is ok for our needs but i think for other companies it won't be a suitable solution.

i don't understand why i can call the enhance.exe with tfsbuild (i tried from explorer and command line) if this user has full control over the base directory and also about the exe file itself ( i checked the rights of the file).

anyway i am getting another build error now:
C:\Program Files\MSBuild\OpenAccess.targets (96): Assembly file name not specified.


0
Jan Blessenohl
Telerik team
answered on 02 Jul 2010, 05:26 PM
Hi Ibrahim Imam,
This looks like an error from the enhancer itself. You can switch on more output for msbuild and you can set the verbose mode to 99 in the targets file.

All the best,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ibrahim Imam
Top achievements
Rank 1
answered on 08 Jul 2010, 01:22 PM
after removing every changes i made in the tfsbuild.proj file during ORM configuration the build now succeeds.
so i assume that the security changes on build server solved the initial problems.

Tags
General Discussions
Asked by
Ibrahim Imam
Top achievements
Rank 1
Answers by
Ibrahim Imam
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or