OutOfRange exception.

Egor Nazarov's Avatar

Egor Nazarov

16 Mar, 2013 10:49 PM

Hello Anton,
First of all thanks for the great idea of software. Instead of all it seems that hglab is great tool every developer should be familiat with. Unfirtunately, I have issues using HgLab. When I try to open repository from Repositories page I have an exception.
Stack trace goes here:
[IndexOutOfRangeException: [There is russian translation of exception type name, so it does not matter]] HgSharp.Core.HgManifestReader.ReadManifestEntry(HgRevlogEntryData revlogEntryData) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgManifestReader.cs:44 HgSharp.Core.HgManifest.get_Item(HgNodeID hgNodeID) in d:\Projects\hglab\lib\hgsharp\src\HgSharp.Core\HgManifest.cs:23 HgLab.Areas.Project.Controllers.RepositoryController.Files(String projectSlug, String repositoryName, String changeset, String path) in d:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:69 lambda_method(Closure , ControllerBase , Object[] ) +243 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +214 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +27 System.Web.Mvc.<>c__DisplayClass15.b__12() +55 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +253 System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +191 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324 System.Web.Mvc.Controller.ExecuteCore() +106 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91 HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in d:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:56 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10 System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19 System.Web.Mvc.Async.<>c__DisplayClass81.b__7(IAsyncResult ) +10 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62 System.Web.Mvc.<>c_DisplayClasse.b__d() +48 System.Web.Mvc.SecurityUtil.b__0(Action f) +7 System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629296 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

The issue is reproducable both if I create new (empty) repository using web app or if I add existing (correct and working) repository and than create repsitory with the same name using web application.
Environment details:
Windows 2011 Home Server Russian (IIS 7) - I know, it is wrong turn. But is it basically Win2008R2 so it should not be an instant showstopper. I create repositories using TortoiseHg. Application pool has access to repositories folder, also I tried to authentificate HgLab application as user that has administration rights, Issue is still here.

I have one more issue (not quite sure that the issues are connected): when I try to push into repository hosted by HgLab it does not write any files to repository folder. Hg files are here, opening a repository via TortoiseHg shows right number and content of changesets by there is no files in repo folder.

Any help will be appreciated. Thanks for your work. Please do not make HgLab very expensive when it goes commercial)

  1. Support Staff 1 Posted by Anton Gogolev on 17 Mar, 2013 05:45 PM

    Anton Gogolev's Avatar


    Which version of HgLab are you running? If it's the latest one, please double-check the "Encoding" setting under Administration / Repositories to ensure it is indeed set to 1251 or 1252.

    Thanks for the kind words!

  2. 2 Posted by Egor Nazarov on 18 Mar, 2013 06:16 PM

    Egor Nazarov's Avatar

    Thanks! Setting encoding to 1252 fixed the issue (I have had Unicode here).

  3. 3 Posted by Egor Nazarov on 18 Mar, 2013 06:19 PM

    Egor Nazarov's Avatar

    one more question here. Is there any way to delete a repository and a project using UI? I do not see any "delete smth." button.

  4. 4 Posted by Egor Nazarov on 19 Mar, 2013 02:29 PM

    Egor Nazarov's Avatar

    Sorry if I was unclear, there is no any criticism at all. I just wonder if I can delete a repository and a project through UI because I do not see a way. If it is possible please show me the way to make it.

  5. Support Staff 5 Posted by Anton Gogolev on 19 Mar, 2013 02:43 PM

    Anton Gogolev's Avatar


    That comment wasn't mine at all, I don't even know where it came from.

    As far as deleting repositories and projects, there's currently no way
    of doing this, but this is a very popular request, so I think I'll
    make it available in the next release.

  6. 6 Posted by Egor Nazarov on 19 Mar, 2013 03:10 PM

    Egor Nazarov's Avatar


  7. Anton Gogolev closed this discussion on 21 Mar, 2013 07:26 AM.

  8. Anton Gogolev re-opened this discussion on 06 May, 2013 07:48 PM

  9. Support Staff 7 Posted by Anton Gogolev on 06 May, 2013 07:48 PM

    Anton Gogolev's Avatar


    As of 0.2.181, HgLab can now delete repositories and projects.

  10. Anton Gogolev closed this discussion on 06 May, 2013 07:48 PM.

  11. Egor re-opened this discussion on 13 May, 2013 10:12 PM

  12. 8 Posted by Egor on 13 May, 2013 10:12 PM

    Egor's Avatar

    Thank you, I'm already using 181 (and there was 180 too) and it is awsome! Thanks for the great work.

    Best wishes.

  13. Anton Gogolev closed this discussion on 14 May, 2013 08:14 AM.

Comments are currently closed for this discussion. You can start a new one.

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