Posts
24
Comments
47
Trackbacks
0
TFS 2008 - Delete a Team Project and the "You are not authorized to access <machine>." message

After an oops with creating a team project in TFS 2008 with an incorrect name, I wanted to cleanup by removing the team project with the incorrect name.  However, someone else created the project and every time I tried to delete the team project using the tfsdeleteproject.exe command line tool, I got the error message:

"You are not authorized to access <machine>."

Uhhh, what?  I'm a domain admin in this domain.  How can this be?

After fumbling around a bit, I had a hunch and checked permissions on the TFS Team Project.  Sure enough, I had permissions on the TFS project, but I had no access to the Sharepoint site or the Reporting services reports.  After using the TFS Admin tool to grant myself permissions to these resources, I was able to delete the Team Project successfully.  The tool was failing to verify I had permissions to these; it would have been helpful to get this feedback rather than the generic "you are not allowed to access this server" message.

posted on Friday, May 23, 2008 9:15 AM Print
Comments
Gravatar
# re: TFS 2008 - Delete a Team Project and the "You are not authorized to access <machine>." message
Brian
6/3/2008 9:51 AM
If you use the /force option I believe you can get around the problem that you were experiencing.
Gravatar
# re: TFS 2008 - Delete a Team Project and the "You are not authorized to access <machine>." message
David Barrett
6/3/2008 10:32 AM
My understanding of the /force option is that instead of doing a transactional delete of the components, it will delete the components it can and provide details about the components it couldn't. In this case, I think some components would be left (e.g., Analysis Services) while some components would be deleted. In this scenario, you would be unable to re-use the name of the Team Project you were trying to delete, plus you'd still have the issue of orphaned components. I don't have personal experience with this, but I'm basing this on the information at http://msdn.microsoft.com/en-us/library/ms400798.aspx
Gravatar
# re: TFS 2008 - Delete a Team Project and the "You are not authorized to access <machine>." message
Justin Selleck
11/20/2008 2:15 PM
If you know the user that created the site you can also login with that user and run teh command with that user.

Post Comment

Title *
Name *
Email
Url
Comment *  
News
Comment and opinions are my own and do not reflect on my company in any way.