Monday, September 6, 2010

How to load web application code from TFS?

I have been teaching quite a number of developer on how to get their source code download properly into the development environment. I hope this step will help others along the ways.

How to open web project in TFS?

1. Go to team explorer and double click on Source Control
2. Go to the folder that contain your .sln file
3. Double click on the SLN
4. If you never download your code before from TFS, it will ask you for the path to save in. Please save the code in your "My Document>Visual Studio 2008 projects>..."
5. Once the code is download, you will be prompt that you might need to create a web application in your IIS. The message sound like "The local IIS URL: http://localhost/xxx specified for Web Project XXX...". Don't click Yes first, go to IIS
6. Under the IIS, find if there is same virtual directory existed. If it is, delete it. If not, just skip and move on to the next step.
7. Click "Yes" on the earlier message on creating web application.
8. Go to IIS again, and refresh it
9. Right click on the new folder which belong to your application and select properties
10. Go to Directory Security Tab
11. Click Edit under Authentication and access control
12. Ensure the Integrated Windows authentication is checked and copy down the user name use by the web application
13. Go to your physical folder which your source code located and right click on it.
14. Click on Security Tab and click Add
15. Paste the username that you copied earlier and click Ok
16. Give full permission to the user.