2013-07-03 63 views
2

我在虛擬機(Windows Azure內)上運行TFS 2012安裝。一切正常,除了大於5MB的文件無法檢入。在客戶端它說:「請求被中止:請求被取消。」TFS2012 - 無法上傳大於5MB的文件

在服務器端的事件日誌中包含一個錯誤說:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 
- <System> 
    <Provider Name="TFS Services" /> 
    <EventID Qualifiers="0">4000</EventID> 
    <Level>2</Level> 
    <Task>0</Task> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2013-07-02T15:57:04.000000000Z" /> 
    <EventRecordID>1832</EventRecordID> 
    <Channel>Application</Channel> 
    <Computer>gm-tfsserver</Computer> 
    <Security /> 
    </System> 
- <EventData> 
    <Data>TF53010: The following error has occurred in a Team Foundation component or extension: Date (UTC): 02/07/2013 15:57:04 Machine: GM-TFSSERVER Application Domain: /LM/W3SVC/2/ROOT/tfs-2-130172535704544600 Assembly: Microsoft.TeamFoundation.Framework.Server, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319 Service Host: 7e62b8c5-5065-4b32-9734-fc37fac35a8c (GM) Process Details: Process Name: w3wp Process Id: 3636 Thread Id: 3232 Account name: GM-TFSSERVER\Christian Detailed Message: TF30065: An unhandled exception occurred. Web Request Details Url: http://gm-tfsserver:8080/tfs/GM/VersionControl/v1.0/upload.ashx [method: POST] User Agent: Team Foundation (devenv.exe, 11.0.60610.1, Ultimate, SKU:8) Headers: Content-Length=16778221&Content-Type=multipart%2fform-data%3b+boundary%3d--------------------------8e5m2D6l5Q4h6&Accept-Language=en-GB&Expect=100-continue&Host=gm-tfsserver%3a8080&User-Agent=Team+Foundation+(devenv.exe%2c+11.0.60610.1%2c+Ultimate%2c+SKU%3a8)&X-TFS-Version=1.0.0.0&X-TFS-Session=2801ee9b-62f2-43e9-9a65-c296978716df Path: /tfs/GM/VersionControl/v1.0/upload.ashx Local Request: False Host Address: 77.177.87.232 User: GM-TFSSERVER\Christian [authentication type: NTLM] Exception Message: TF14109: Parts of the file $/GM Software/Legacy Code/Gw Code/GrData.txt were not uploaded. (type IncompleteUploadException) Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.ParseRequestParameters(VersionControlRequestContext versionControlRequestContext, String& workspaceName, String& workspaceOwner, String& serverItem, Byte[]& hash, HttpPostedFile& file, Int64& fileLength, Int64& compressedLength, Int64& offsetFrom, CompressionType& compressionType) at Microsoft.TeamFoundation.VersionControl.Server.UploadHandler.Execute()</Data> 
    </EventData> 
    </Event> 

我從兩個不同位置的兩個不同的網絡連接進行了測試。虛擬機的端口8080在天藍色端點配置中打開。

有沒有人有想法?

回答

6

通過客戶端我嘗試以下解決方案,解決了我的

請求已中止問題:請求已被取消。

通過將應用程序設定鍵VersionControl.UploadChunkSize到devenv.exe.config(%程序Files%\微軟的Visual Studio 11.0 \ Common7 \ IDE)

<appSettings> 
    <add key="VersionControl.UploadChunkSize" value="1048576" /> 
</appSettings> 

我想這從這樣的回答:TFS check in timeout of changeset containing "larger" binary files
請看鏈接以獲取更多信息。

0

我認爲你需要在web.config文件中尋找deltaMaxFileSize

Link

+0

我無法找到該鏈接中提到的web.config。我的客戶端甚至沒有Team Foundation Server文件夾。同樣在服務器端,這個設置沒有web.config。 – Christian