hglab installation error

Sherief Alaa's Avatar

Sherief Alaa

09 Feb, 2017 09:06 PM

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.ResourcePool1..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.&lt;Register&gt;b__f(IComponentContext c, IEnumerable1 p)
   at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass11.&lt;ForDelegate&gt;b__0(IComponentContext c, IEnumerable1 p)
   at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters)
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 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, IEnumerable1 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, IEnumerable1 parameters)
   at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters)
   at Autofac.Core.Container.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object&amp; instance)
   at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable1 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.&lt;&gt;c__DisplayClass1c.&lt;&gt;c__DisplayClass1e.&lt;InvokeActionResultWithFilters&gt;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 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.&lt;BeginSynchronous&gt;b__7(IAsyncResult _)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.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)
  1. Support Staff 1 Posted by Anton Gogolev on 10 Feb, 2017 02:18 PM

    Anton Gogolev's Avatar

    Hello!

    Please, upgrade to HgLab 1.11.1 and this issue will be resolved:

    https://hglabhq.com/download/1.11.1

  2. 2 Posted by Sherief Alaa on 10 Feb, 2017 07:51 PM

    Sherief Alaa's Avatar

    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.

  3. Support Staff 3 Posted by Anton Gogolev on 11 Feb, 2017 11:44 AM

    Anton Gogolev's Avatar

    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.

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

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

Recent Discussions

21 Sep, 2019 09:28 PM
21 Aug, 2019 09:07 AM
30 Jul, 2019 08:59 PM
31 May, 2019 02:29 PM
26 Nov, 2018 01:47 PM

 

16 Nov, 2018 07:51 PM
06 Nov, 2018 04:30 PM
24 Oct, 2018 07:57 AM
20 Jul, 2018 11:07 PM
05 Jul, 2018 10:53 AM
27 May, 2018 01:33 AM