Changing repostories encoding kills hglab

Moti's Avatar


23 Jan, 2017 07:51 AM


I fresh installed hglab, create a repository, did some commits and pushes. Everything worked.

Then went to settings and changed the settings and changed repository encoding to unicode 1200.

After that everyting crushes, and going to dashboard shows the attached message.


  1. 1 Posted by Moti on 23 Jan, 2017 12:13 PM

    Moti's Avatar

    Ran some more tests. There is no need to create repositories. Just install hglab, go and change the encoding and it kills the product.
    If it isn't dead immedaitly after the change, preform an iisreset and it will die.

  2. 2 Posted by Moti on 23 Jan, 2017 12:18 PM

    Moti's Avatar

    Here is the entire stacktrace:

    ''' System.Net.ProtocolViolationException: Operation is not valid due to the current state of the object.
    at HgRpcSharp.HgRpcHandler..ctor(String hgExeFullPath, String encoding) at HgRpcSharp.HgRpcServer.<>c__DisplayClass2.<.ctor>b__0() at HgRpcSharp.ResourcePool1.AcquireResource(TimeSpan timout) at HgRpcSharp.HgRpcServer.GetHgRpcServerInformation() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value() at HgRpcSharp.HgRpcServer.get_Information() at HgLab.Core.Framework.Web.HgLabControllerBase.GetAmbience() in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 200 at HgLab.Core.Framework.Web.HgLabControllerBase.OnResultExecuting(ResultExecutingContext filterContext) in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 141 at System.Web.Mvc.Controller.System.Web.Mvc.IResultFilter.OnResultExecuting(ResultExecutingContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 100 at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass81.b__7(IAsyncResult ) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.<>c_DisplayClasse.b__d() at System.Web.Mvc.SecurityUtil.b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) '''

  3. Support Staff 3 Posted by Anton Gogolev on 24 Jan, 2017 11:00 AM

    Anton Gogolev's Avatar


    That's the most bothersome aspect of Mercurial on Windows (and there's no
    fault of Mercurial here): .

    Essentially, there's no easy or clean way ot of this. This setting is
    something that an administrator will have to configure during installation,
    not during normal operation.

Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • hglab.png 80.6 KB

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