2014-01-27 64 views
6

请任何人有一个想法,而在文件上检查TFS是什么原因造成这样的错误:异常的类型初始化为抛出“Microsoft.TeamFoundation.Framework.Server.ByteArray”

“为“Microsoft.TeamFoundation的类型初始.Framework.Server.ByteArray'抛出一个异常。“

这是从事件查看器中的堆栈跟踪:

**TF53010: The following error has occurred in a Team Foundation component or extension: 
Date (UTC): 4/7/2014 5:57:14 AM 
Machine: TFSSRV 
Application Domain: /LM/W3SVC/8080/ROOT/tfs-14-130413234339367965 
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 
Service Host: 61e34d8a-3995-492a-b0b1-b1ca43304366 (SABIS) 
Process Details: 
    Process Name: w3wp 
    Process Id: 3896 
    Thread Id: 4844 
    Account name: INTEREDLB\eghanem 
Detailed Message: TF30065: An unhandled exception occurred. 
Web Request Details 
    Url: tfssrv:8080/tfs/_tfs_resources/VersionControl/v1.0/upload.ashx [method: POST] 
    User Agent: Team Foundation (devenv.exe, 10.0.30319.1) 
    Headers: Content-Length=125836&Content-Type=multipart%2fform-data%3b+boundary%3d--------------------------8e5m2D6l5Q4h6&Accept-Language=en-US&Authorization=NTLM+TlRMTVNTUAADAAAAGAAYAIQAAABcAVwBnAAAABIAEgBYAAAADgAOAGoAAAAMAAwAeAAAAAAAAAD4AQAABYKIogYC8CMAAAAPEamXFnqofvmag9Tv7MumY0kATgBUAEUAUgBFAEQATABCAGUAZwBoAGEAbgBlAG0ASQBUAFEAQwAwADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgPJ7o8t9UpE1fWPVvOiQkwEBAAAAAAAAOSm6OSZSzwGLmc3OzEbnlAAAAAACABIASQBOAFQARQBSAEUARABMAEIAAQAMAFQARgBTAFMAUgBWAAQAJgBpAG4AdABlAHIAZQBkAGwAYgAuAHMAYQBiAGkAcwAuAG4AZQB0AAMANAB0AGYAcwBzAHIAdgAuAGkAbgB0AGUAcgBlAGQAbABiAC4AcwBhAGIAaQBzAC4AbgBlAHQABQASAHMAYQBiAGkAcwAuAG4AZQB0AAgAMAAwAAAAAAAAAAEAAAAAIAAAPo4lTXR7%2fzg5WQsBAME%2f5oXFLmv2XYbJUNBj1fLeBfkKABAAAAAAAAAAAAAAAAAAAAAAAAkAPgBIAFQAVABQAC8AdABmAHMAcwByAHYALgBpAG4AdABlAHIAZQBkAGwAYgAuAHMAYQBiAGkAcwAuAG4AZQB0AAAAAAAAAAAA&Expect=100-continue&Host=tfssrv%3a8080&User-Agent=Team+Foundation+(devenv.exe%2c+10.0.30319.1)&X-TFS-Version=1.0.0.0&X-TFS-Session=f705371b-1a30-4e4a-861c-62d652add5e3&TF-Instance=f705371b-1a30-4e4a-861c-62d652add5e3 
    Path: /tfs/_tfs_resources/VersionControl/v1.0/upload.ashx 
    Local Request: False 
    Host Address: 192.168.200.234 
    User: INTEREDLB\eghanem [authentication type: NTLM] 
Exception Message: The type initializer for 'Microsoft.TeamFoundation.Framework.Server.ByteArray' threw an exception. (type TypeInitializationException) 
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.ByteArray..ctor(Int32 sizeRequested) 
    at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.UploadFile(VersionControlRequestContext versionControlRequestContext, String workspaceName, String workspaceOwner, String serverItem, Byte[] hash, Stream fileStream, Int64 fileLength, Int64 compressedLength, Int64 offsetFrom, CompressionType compressionType) 
    at Microsoft.TeamFoundation.VersionControl.Server.TeamFoundationVersionControlService.UploadFile(TeamFoundationRequestContext requestContext, String workspaceName, String workspaceOwner, String serverItem, Byte[] hash, Stream fileStream, Int64 fileLength, Int64 compressedLength, Int64 offsetFrom, CompressionType compressionType) 
    at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.Execute() 
Inner Exception Details: 
Exception Message: Exception of type 'System.OutOfMemoryException' was thrown. (type OutOfMemoryException) 
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.BufferPool..ctor(Int32 bufferSize, Int32 initialNumberOfEntries) 
    at Microsoft.TeamFoundation.Framework.Server.ByteArray..cctor() 
For more information, see Help and Support Center at** 

回答

4

我只是在今天遇到了同样的问题。为了可能触及本页面的其他人,因为这是搜索异常时的第一次打击。我看了一下MS社交问题here,但是关键似乎是应用层框架中的某些东西,我在TFS应用层服务器上执行了IISRESET.exe(以管理员身份),并且所有事情都再次开始正常工作。

+0

确切地说,事情是当我重新启动TFS服务器时,一切都完美了。但它经常发生。我们需要知道这个bug的来源。 –

+0

以下是来自事件查看器的堆栈跟踪: –

相关问题