hglab installation error
Hi,
While I was installing hglab for the first time on a Windows server 2012, I ran into an error (see below) that I don't understand much about. The application just threw and exception. I can provide any information needed and your help would be really appreciated. Thanks.
Error:
Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> System.ArgumentOutOfRangeException: Positive number required. Parameter name: maximumCount at System.Threading.Semaphore..ctor(Int32 initialCount, Int32 maximumCount, String name) at System.Threading.Semaphore..ctor(Int32 initialCount, Int32 maximumCount) at HgRpcSharp.ResourcePool
1..ctor(Int32 items, Func1 resourceProvider) at HgRpcSharp.HgRpcServer..ctor(String hgExeFullPath, String encoding) at HgLab.Core.Configuration.Modules.HgRpcServerModule.<Load>b__0(IComponentContext ctx) in d:\projects\hglab\src\HgLab.Core\Configuration\Modules\HgRpcServerModule.cs:line 20 at Autofac.RegistrationExtensions.<>c__DisplayClass101.<Register>b__f(IComponentContext c, IEnumerable
1 p) at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass11.<ForDelegate>b__0(IComponentContext c, IEnumerable
1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters) at Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) --- End of inner exception stack trace --- at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.Core.Container.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable
1 parameters) at Autofac.ResolutionExtensions.ResolveOptionalTService at Autofac.ResolutionExtensions.ResolveOptionalTService at octalforty.Structural.Core.ComponentModel.ServiceProvider.ResolveT in d:\projects\octalforty-structural\src\octalforty.Structural.Core\ComponentModel\ServiceProvider.cs:line 24 at HgLab.Core.Framework.Web.HgLabControllerBase.GetAmbience() in d:\projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 185 at HgLab.Core.Framework.Web.HgLabControllerBase.OnResultExecuting(ResultExecutingContext filterContext) in d:\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.<InvokeActionResultWithFilters>b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList
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 d:\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.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult
1.End() at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d() at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>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)
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Anton Gogolev on 10 Feb, 2017 02:18 PM
Hello!
Please, upgrade to HgLab 1.11.1 and this issue will be resolved:
https://hglabhq.com/download/1.11.1
2 Posted by Sherief Alaa on 10 Feb, 2017 07:51 PM
Hi Anton,
Your patch fixed the issue. However, I've noticed that the installer doesn't detect that I've installed Mercurial-64bit and complained that it cannot find Mercurial's path so I've corrected it myself. Just wanted to let you know.
Thanks.
Support Staff 3 Posted by Anton Gogolev on 11 Feb, 2017 11:44 AM
Thanks for pointing this out!
The issue here is that due to various quirks of MSI there is no way to build a single x86/x64 installer, so HgLab aims for the lowest common denominator.