Justin,
 
Whilst, I'm not answering your question directly.   It is pretty easy to find out what account the build is running under.   Just got to the Service management console (Service.msc) , look for the Team Build Service and have a look what account it is running under.   You can then give access to the correct locations in the registry (see http://objectsharp.com/blogs/bruce/archive/2003/12/05/222.aspx  for the required location and permissions).
 
 
Cheers

Chris Burrows
Senior Consultant
Readify

From: [EMAIL PROTECTED] on behalf of Justin Adler
Sent: Fri 27/10/2006 1:53 PM
To: [email protected]
Subject: [OzTFS] Tests being run with Team Build are not passing - security exceptions

Heya folks,
    on my local XP machine my test run perfectly - all green ticks. When i run the team build (on the w2k3 build server) the tests do not run anymore. They are all related to some code i've done which starts with this ...
 

category = PerformanceCounterCategory.Create(GeospacialPerformance._performanceCategoryName,
GeospacialPerformance
._performanceCategoryDescription,
PerformanceCounterCategoryType
.SingleInstance,
counterList);

 
As u can quickly see, i'm trying to create my own custom performance counters to help monitor our applications. For some reason, the user account which i must be using with my local XP VSTS machine has sufficient rights, but the Team Build server/account doesn't.
 
I was afraid of having to figure out what account the build is being run under on the build server (i'm assuming it's the account i installed the product under/as) and then having to give that silly account some special rights to access the registry and perfomance counter stuff.
 
Could this be done programatically via code. So where i do some perfomance counter stuff / my permon class, i could apply some special attributes or something to allow team build to be 'allowed' the correct .net security? It might seem simple to just give the build useraccount the correct access, but what happens when we load balance. Also, if it's breaking on the build server, it will definately break on the web servers which are load balanced.
 
Any thoughts, folks? Boy this has been killing me over the last 24 hours :(
 
 
EDIT: appologies to the listmanager for accidently sending my initial email to that address, instead of listserver.

Justin Adler
Senior Developer
Stargate Group
Level 4, 600 Victoria Street
Richmond Victoria 3121

Telephone: 03 8420 3009
Facsimile: 03 9428 1533

www.stargatetech.com.au

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. No responsibility is assumed by the company or its employee to any other person for any loss or damage (whether caused by negligence or not) arising from the use of the information and advice contained herein. Finally, it is your responsibility to check any attachments for viruses and defects before opening or sending them on.


OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net
OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net

Reply via email to