tag:support.hglabhq.com,2012-10-18:/discussions/problems/1083-changing-repostories-encoding-kills-hglabHgLab: Discussion 2017-01-24T11:00:03Ztag:support.hglabhq.com,2012-10-18:Comment/417988612017-01-23T12:13:33Z2017-01-23T12:13:34ZChanging repostories encoding kills hglab<div><p>Ran some more tests. There is no need to create repositories.
Just install hglab, go and change the encoding and it kills the
product.<br>
If it isn't dead immedaitly after the change, preform an iisreset
and it will die.</p></div>Motitag:support.hglabhq.com,2012-10-18:Comment/417988612017-01-23T12:18:05Z2017-01-23T12:18:06ZChanging repostories encoding kills hglab<div><p>Here is the entire stacktrace:</p>
<p>''' System.Net.ProtocolViolationException: Operation is not
valid due to the current state of the object.<br>
at HgRpcSharp.HgRpcHandler..ctor(String hgExeFullPath, String
encoding) at
HgRpcSharp.HgRpcServer.<>c__DisplayClass2.<.ctor>b__0()
at HgRpcSharp.ResourcePool<code>1.AcquireResource(TimeSpan timout)
at HgRpcSharp.HgRpcServer.GetHgRpcServerInformation() at
System.Lazy</code>1.CreateValue() --- End of stack trace from
previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Lazy<code>1.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, Func</code>1
continuation) at
System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.b__1b()
at
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext
controllerContext, IList<code>1 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__DisplayClass8</code>1.b__7(IAsyncResult
<em>) at
System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.MvcHandler.<>c</em>_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) '''</p></div>Motitag:support.hglabhq.com,2012-10-18:Comment/417988612017-01-24T11:00:03Z2017-01-24T11:00:03ZChanging repostories encoding kills hglab<div><p>Moti,</p>
<p>That's the most bothersome aspect of Mercurial on Windows (and
there's no<br>
fault of Mercurial here):<br>
<a href="https://www.mercurial-scm.org/wiki/CharacterEncodingOnWindows">https://www.mercurial-scm.org/wiki/CharacterEncodingOnWindows</a>
.</p>
<p>Essentially, there's no easy or clean way ot of this. This
setting is<br>
something that an administrator will have to configure during
installation,<br>
not during normal operation.</p></div>Anton Gogolev