TFS2012 - 不能上传大于 5MB 的文件 [英] TFS2012 - cannot upload files larger than 5MB

查看:27
本文介绍了TFS2012 - 不能上传大于 5MB 的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在虚拟机(Windows Azure 内部)上运行 TFS 2012 安装.一切正常,除了不能签入大于 5MB 的文件.在客户端它说:请求被中止:请求被取消.".

I am running a TFS 2012 installation on a virtual machine (inside Windows Azure). Everything works fine, except that files bigger than 5MB cannot be checked in. On the client side it says: "The request was aborted: The request was canceled.".

在服务器端,事件日志包含一条错误消息:

On the server side the event log contains an error saying:

- <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>

我使用来自两个不同位置的两个不同互联网连接对其进行了测试.虚拟机在 azure 端点配置中打开了端口 8080.

I tested it with two different internet connections from two different locations. The Virtual machine has port 8080 opened in the azure endpoint configuration.

有人有想法吗?

推荐答案

通过客户端我尝试了以下解决方案

Through the client side I tried the following solution which solve my problem with

请求被中止:请求被取消.

The request was aborted: The request was canceled.

通过将应用设置键 VersionControl.UploadChunkSize 添加到 devenv.exe.config (%Program Files%\Microsoft Visual Studio 11.0\Common7\IDE)

by adding the app setting key VersionControl.UploadChunkSize to devenv.exe.config (%Program Files%\Microsoft Visual Studio 11.0\Common7\IDE)

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

我从这个答案中想到了这一点:TFS 检查包含更大"的变更集的超时时间二进制文件
请查看链接以获取更多信息.

I figured this from this answer: TFS check in timeout of changeset containing "larger" binary files
Please have a look to the link to get more information.

这篇关于TFS2012 - 不能上传大于 5MB 的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆