Wednesday, May 27, 2009

Delete a Team Project

One of the new team members accidently created a team project (Remiss of the administrator for giving him full control).
Found out a way to delete the team project
Open a command line on your team foundation server and cd to
drive:/%program files%\Microsoft Visual Studio 9.0\Common7\IDE (For VSTS 2008)
tfsdeleteproject /q /force /server:<tfs server> "<project name>"

Monday, May 25, 2009

Restoring TFS 2008

I am sure everyone will be taking backup of their TFS on regular basis. Being new to TFS I thought to try and restore the TFS on a new machine, to avoid the risk of not taking backup of anything.

I had a spare PC in which I installed the trial of TFS. the environment of the new machine was now exactly the same as that of the old (or existing)machine.
The link which helped me for this was

Friday, May 22, 2009

Error 28002 : Unknown Error

This was the forth time I was installing TFS 2008 and I got this error for the first time. It has to do with the DNS. TFS is not able to resolve the Domain Name as a result of which it gives TFS3010 (if you see the Event log).
1. Open the web.config from the path below (TFS Root)
%systemdrive%/Program Files\Microsoft Visual Studio 2008 Team Foundation Server/Web Services/Web.config
Add the below key
<add key="<DomainFullyQualifiedPath>" value="dcHostName" />
And hit Retry on the Error message.

Wednesday, May 20, 2009

Error (rsAccessDenied) - 'NT AUTHORITY\NETWORK SERVICE' are insufficient

I did all the necessary settings to the reporting service so that my domain users can access the reporting service, but still I was getting rsAccessDenied error.

Then I read once solution in one of the forums in which there were few steps mentioned which solved my problem
1. Open http://localhost/reports
2. Go to Home Properties
3. Add a BUILTIN\Users and gave it Browser permissions and the problem was solved.

TF30042: The database is full. Contact your Team Foundation Server administrator.

Since many days we were facing problems with Low disk space on our TFS machine. I noticed that the LoadTest database Log was around 19Gigs. Till then I was not aware that there is a setting for restricting growth of the Log file. I then moved my mdf and ldf files to a drive with ample space and then restricted the growth of Log not more than 20Gigs.
And subsequently I changed the settings of all the TFS database not to grow exponentially. But the next day I came and tried to start my VSTS, it started givine me the same error
TF30042: The database is full. Contact your Team Foundation Server administrator.
Reading few blogs, I decided to change the Recovery Model of all the database from full to simple. And I was able to use my TFS without any issues after that. Below are the steps
1. Go to properties of the database

2. In Options tab, change Recovery model from Full to Simple.

I read in couple of blogs that it is not advisable to use Full Recovery model for the database which is used for version control.

Thursday, May 14, 2009

Zoom and Draw during presentation

Seeing many presentations I was wondering how was it possible for a person to zoom at a particular area in the screen and draw while in that mode. Did a search and found a pretty slick tool. Have a look

Wednesday, May 6, 2009

SharePoint Access rights management

For managing the sharepoint access rights for users of TFS follow the following steps.
1. In Team Explorer right click on the Team Project for which you want to give access rights and select Securiy menu item.

2. In the screen displayed click on the Windows Sharepoint Services Site Administration link.
Note: The credentials of the user doing this changes should have the administrator privilages for sharepoint.

3. Internet explorer will be displayed in which you will be able manage rights for groups and individuals. You also will be add/remove users from a group.

Tuesday, May 5, 2009

How to remove a Service

We are developing a application which is based on SOA. We are maintaing PowerShell scripts and batch files to Install/Uninstall and Start/Stop the services.
But in certain cases (especially when the Powershell script is updated and user doesn't run the previous script to uninstall service) the services still remains and doesn't get uninstalled.

For this there is a simple command.
1. Run Visual Studio Command Prompt (Run as administrator)
2. write the following code
sc delete <servicename>

Note : You can get the name of the service from the properties of the service