tag:support.hglabhq.com,2012-10-18:/discussions/problems/986-http-error-500-with-lan-optimizations-enabledHgLab: Discussion 2016-03-01T18:10:42Ztag:support.hglabhq.com,2012-10-18:Comment/392655282016-02-29T18:36:32Z2016-02-29T18:36:32ZHTTP error 500 with LAN Optimizations enabled<div><p>Arsene,</p>
<p>LAN Optimizations work no matter where the client is coming from
(but<br>
restricting this to requests coming from the intranet is a neat
idea).</p>
<p>Do you happen to have any logs related to this issue (under<br>
HGLAB_HOME_DIRECTORY\logs\hgsharp-yyyy-MM-dd.log)?</p></div>Anton Gogolevtag:support.hglabhq.com,2012-10-18:Comment/392655282016-03-01T18:10:41Z2016-03-01T18:10:41ZHTTP error 500 with LAN Optimizations enabled<div><p>Here you go:</p>
<pre>
<code>23:16:20.3773 - Error - admin - HgSharp.Server.HgHttpServer - exceptionSystem.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
at HgSharp.Core.HgPathEncoder.auxencode(String path) in d:\projects\hgsharp\src\HgSharp.Core\HgPathEncoder.cs:line 220
at HgSharp.Core.HgPathEncoder.EncodePath(String path) in d:\projects\hgsharp\src\HgSharp.Core\HgPathEncoder.cs:line 65
at HgSharp.Core.HgFnCacheStore.<GetDataFiles>b__2(String f) in d:\projects\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 51
at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at HgSharp.Core.HgFnCacheStore.GetDataFiles() in d:\projects\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 49
at HgSharp.Server.HgHttpServer.ExecuteStreamOut(NameValueCollection arg) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 559
at HgSharp.Server.HgHttpServer.<>c__DisplayClass2`1.<Args>b__1(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 92
at HgSharp.Server.HgHttpServer.<>c__DisplayClass8.<ReadCommand>b__7(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 143
at HgSharp.Server.HgHttpServer.<>c__DisplayClassb.<ExceptionHandler>b__a(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 152 at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
at HgSharp.Core.HgPathEncoder.auxencode(String path) in d:\projects\hgsharp\src\HgSharp.Core\HgPathEncoder.cs:line 220
at HgSharp.Core.HgPathEncoder.EncodePath(String path) in d:\projects\hgsharp\src\HgSharp.Core\HgPathEncoder.cs:line 65
at HgSharp.Core.HgFnCacheStore.<GetDataFiles>b__2(String f) in d:\projects\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 51
at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at HgSharp.Core.HgFnCacheStore.GetDataFiles() in d:\projects\hgsharp\src\HgSharp.Core\HgFnCacheStore.cs:line 49
at HgSharp.Server.HgHttpServer.ExecuteStreamOut(NameValueCollection arg) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 559
at HgSharp.Server.HgHttpServer.<>c__DisplayClass2`1.<Args>b__1(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 92
at HgSharp.Server.HgHttpServer.<>c__DisplayClass8.<ReadCommand>b__7(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 143
at HgSharp.Server.HgHttpServer.<>c__DisplayClassb.<ExceptionHandler>b__a(HgHttpCommandContext httpContext) in d:\projects\hgsharp\src\HgSharp.Server\HgHttpServer.cs:line 152</code>
</pre></div>Arsène von Wyss