Thursday, June 09, 2011

TFS Error | The type initializer for 'Microsoft.TeamFoundation.Build.Server.BuildInformationNodeBinder' threw an exception.

Posting this one for the search engines. If you ever receive the exception "The type initializer for 'Microsoft.TeamFoundation.Build.Server.BuildInformationNodeBinder' threw an exception.", more than likely, your drive space is at 0 on your TFS application tier box.

I encountered this at a client recently. The root cause was that IIS logs had filled up the OS drive (C:\). I switched IIS logging to the applications drive (D:\) which cleaned up the OS drive and resolved the issue.

Detailed message:


TF53010: The following error has occurred in a Team Foundation component or extension:


Date (UTC): 6/7/2011 4:18:53 PM

Machine: TFSATBOX

Application Domain: /LM/W3SVC/8080/ROOT/tfs-1-129519118182628600

Assembly: Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727

Service Host: 7ecfbd77-b386-4d75-b038-b05474782696 (DefaultCollection)

Process Details:

Process Name: w3wp

Process Id: 3676

Thread Id: 5752

Account name: DOMAIN\SomeUser



Detailed Message: TF30065: An unhandled exception occurred.



Web Request Details

Url: http://tfs.internal.somedomain.com:8080/tfs/_tfs_resources/Build/v3.0/BuildService.asmx [method: POST]

User Agent: Team Foundation (devenv.exe, 10.0.40219.1)

Headers: Content-Length=406&Content-Type=application%2fsoap%2bxml%3b+charset%3dutf-8&Accept-Encoding=gzip&Accept-Language=en-US&Expect=100-continue&Host=tfs.internal.somedomain.com%3a8080&User-Agent=Team+Foundation+(devenv.exe%2c+10.0.40219.1)&X-TFS-Version=1.0.0.0&X-TFS-Session=7f33f7f4-765c-46fd-9f4a-bfd6dab598e7&TF-Instance=7f33f7f4-765c-46fd-9f4a-bfd6dab598e7&SOAPAction=http%3a%2f%2fschemas.microsoft.com%2fTeamFoundation%2f2005%2f06%2fBuild%2fBuildService%2f03%2fStopBuilds

Path: /tfs/_tfs_resources/Build/v3.0/BuildService.asmx

Local Request: False

Host Address: 10.10.10.10

User: DOMAIN\SomeUser [authentication type: NTLM]



Exception Message: The type initializer for 'Microsoft.TeamFoundation.Build.Server.BuildInformationNodeBinder' threw an exception. (type TypeInitializationException)



Exception Stack Trace: at Microsoft.TeamFoundation.Build.Server.BuildInformationNodeBinder.Bind()

at Microsoft.TeamFoundation.Framework.Server.ObjectBinder`1.TryMoveNext()

at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.UpdateBuildInformation(TeamFoundationRequestContext requestContext, IList`1 changes, IdentityDescriptor requestedFor)

at Microsoft.TeamFoundation.Build.Server.BuildController.StopBuilds(TeamFoundationRequestContext requestContext, IdentityDescriptor requestedFor, BuildServiceHost serviceHost, IList`1 builds, Boolean force)

at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.StopBuilds(TeamFoundationRequestContext requestContext, IList`1 uris)

at Microsoft.TeamFoundation.Build.Server.BuildWebService.StopBuilds(String[] uris)



Inner Exception Details:



Exception Message: There is not enough space on the disk.

(type IOException)



Exception Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)

at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)

at System.IO.FileStream.Dispose(Boolean disposing)

at System.IO.Stream.Close()

at System.IO.StreamWriter.Dispose(Boolean disposing)

at System.IO.TextWriter.Dispose()

at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)

at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)

at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)

at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)

at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)

at Microsoft.TeamFoundation.Build.Server.BuildSqlXmlColumnBinder`1..ctor(String columnName)

at Microsoft.TeamFoundation.Build.Server.BuildInformationNodeBinder..cctor()

No comments: