Team System Bug Entry Webform for ASP.NET
A common request for ASP.NET projects that are using Team System is to have a "new bug" webform. This way, customers or users have a way to get their bug submissions directly into Team System.
I whipped up a quick little "hello world" demo of an ASP.NET webform that connects to Team System and enters a bug on behalf of the user. It's a single page plus a configuration section, with some basic error handling logic in case something goes wrong.
Download the Visual Studio 2005 solution (7kb)
It's intentionally simple as is, but you could easily extend it to add more complex work items with attachments, and so forth.
The web.config looks like this:
<configSections>
<sectionGroup name="TFS">
<section name="Server" type="TFSConfigurationSection, TFSWebDemo"/>
</sectionGroup>
</configSections>
<TFS>
<Server server="http://tfsserver:8080" userName="username" password="password" domain="domain" project="projectname" />
</TFS>
Be sure to edit this to select the right server, user, and project. Note that you may need to grant permission to the 'C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache' folder for the user specified in web.config. Or at least, I did on our web server.