Today I upgraded the Visual Studio 2008 instance on my development server to SP1. This server is also running TFS 2008 on SQL 2005. Because of that upgrade, Team Foundation Server stopped working. In the event viewer I found the following (trimmed)
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 8/13/2008 2:57:40 PM
Machine:
Application Domain: /LM/W3SVC/2/Root/Services-1-128631130243437500
Assembly: Microsoft.TeamFoundation.Server, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 2844
Thread Id: 2988
Account name: NT AUTHORITY\NETWORK SERVICE
Detailed Message: TF53013: A crash report is being prepared for Microsoft. The following information is included in that report:
System Values
OS Version Information=Microsoft Windows NT 5.2.3790 Service Pack 2
CLR Version Information=2.0.50727.3053
(trimmed)
Exception: TypeInitializationException
Message: The type initializer for 'Microsoft.TeamFoundation.Server.IntegrationResourceComponent' threw an exception.
Stack Trace:
at Microsoft.TeamFoundation.Server.IntegrationResourceComponent.RegisterExceptions()
at Microsoft.TeamFoundation.Server.Global.Initialize()
at Microsoft.TeamFoundation.Server.TeamFoundationApplication.Init()
Inner Exception Details
Exception: ReflectionTypeLoadException
Message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Stack Trace:
at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at Microsoft.TeamFoundation.Server.SqlResourceComponent.RegisterExceptions(Assembly assembly)
at Microsoft.TeamFoundation.Server.IntegrationResourceComponent.RegisterExceptions()
at Microsoft.TeamFoundation.Server.IntegrationResourceComponent..cctor()
I fixed this problem by installing the SP1 for Team Foundation Server 2008, also included in the August 11 release batch.
I'm planning an upgrade to SQL Server 2008 in the next weeks. Officially TFS 2008 SP1 supports SQL 2008 so that should go fine. I'll keep you posted with the results.
Hope this helps,
Leon
Update 18-03-2009: Today I encountered a related but different problem. I was working on a TFS 2008 + SP1 machine, but because some SQL Server 2008 components were not installed, I added them to the installation. But SQL 2008 only wants to install when Visual Studio 2008 Service Pack 1 is installed. So I installed VS2008 SP1. I did that and was able to finish the SQL Server installation.
Now TFS got broken. The error in Team Explorer was:
“TF31004: Team Foundation encountered an unexpected error while connecting to Team Foundation Server <servername>. Wait a few minutes and try again. If the problem persists, contact your Team Foundation Server administrator.”
I tried to reinstall TFS 2008 SP1 but this was not possible. The setup gives the following message:
“None of the products that are addressed by this software update are installed on this computer. Click Cancel to exit setup.”
At the end I fixed it by registering ASP.NET again with IIS.
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe –i
iisreset