|
Justin,
Sorry that I didn't get back to you for a while. It looks like the application is an ASP.NET application. If this is is the case and your tests are running through the ASP.NET then you will need to find the account of the Application Pool that is running when you are running your tests. Have a look in the security log to see if there are any failures. This might help you find the
Another way to get around this is create a project installer to install the performance counters for you. Look at (http://msdn2.microsoft.com/en-us/library/zy8ykbyk.aspx) specifically the performanceCounterinstaller class.
Cheers
Chris From: [EMAIL PROTECTED] on behalf of Justin Adler Sent: Fri 27/10/2006 3:35 PM To: [email protected] Subject: RE: [OzTFS] Tests being run with Team Build are not passing - security exceptions Hello Chris,
thanks for the reply :) I was trying to avoid having to modify the registry to manually setting up app pools or specific permissions to user accounts - I find this starts to get unmanageable when there's multiple web servers hosting the applications, etc.
None-the-less I did try your example by checking out what account the Team Build Service is running under. The account is LogOn <domain>\TFSService. I then even tried adding this network account to the local administrative account of the build server. Build didn't work (test failed with security exceptions). Updating the reg key (as listed in the url link) also failed with tests not working.
Any other suggestions to help debug this?
Cheers :)
-Jussy-
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.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Burrows
Sent: Friday, 27 October 2006 2:10 PM To: [email protected]; [email protected] Subject: RE: [OzTFS] Tests being run with Team Build are not passing - security exceptions 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). 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.
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 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 Powered by mailenable.com - List managed by www.readify.net |
- [OzTFS] Tests being run with Team Build are not passing - se... Justin Adler
- RE: [OzTFS] Tests being run with Team Build are not pas... Chris Burrows
- RE: [OzTFS] Tests being run with Team Build are not pas... Justin Adler
- RE: [OzTFS] Tests being run with Team Build are not... Chris Burrows

