push problems 500 argument out of range

hoochul.kim's Avatar


30 Nov, 2015 08:37 PM

I am trying to push a 2.7GB repo, beyond the range of int32. I've been trying to push it and have been running into lots of issues. Here's a run down of things I've done using version

- disable 32 bit support in app pools
- change the app pools managed pipeline mode to classic
- increase max lengths in the web.config file

The latest error I'm getting is

System.IO.Stream.InternalCopyTo(… Int32 buffSize) was throwing an argument out of range exception at

HgSharpServer.ExecuteUnbundle(HgHttpCommandContext context) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs line 311

Is there a fix for this?

  1. Support Staff 1 Posted by Anton Gogolev on 01 Dec, 2015 08:09 AM

    Anton Gogolev's Avatar

    Hello, Kim!

    HgLab is known to have problems with large repositories. You can circumvent HgLab entirely for your first push by just copying the .hg directory directly to the server, under HGLAB_HOME_DIRECTORY\repositories\mainline\PROJECT_SLUG\REPOSITORY_NAME.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM


18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM