History:
I was using hops with no problems. I decided to download and compile the visual studio solution to test things out, and am able to successfully connect to this external compute server.
However now, I can no longer connect to the local instance of from within grasshopper:
Here’s the error I get:
[10:13:53 INF] Now listening on: http://localhost:6500
[10:13:53 INF] Application started. Press Ctrl+C to shut down.
[10:13:53 INF] Hosting environment: Production
[10:13:53 INF] Content root path: C:\Program Files\Rhino 7\System
CG [10:13:58 INF] Compute 1.0.0.0, Rhino 7.28.23058.3001
CG [10:13:58 INF] Configuration Result:
[Success] Name compute.geometry
[Success] DisplayName rhino.compute
[Success] Description rhino.compute
[Success] ServiceName compute.geometry
CG [10:13:58 INF] Topshelf v4.1.0.172, .NET Framework v4.0.30319.42000
CG [10:13:58 INF] Launching RhinoCore library as pcuser
CG 6001 [10:14:01 INF] (1/2) Loading grasshopper
CG 6001 [10:14:11 INF] (2/2) Loading compute plug-ins
CG 6001 [10:14:13 INF] The compute.geometry service is now running, press Control+C to exit.
[10:14:53 INF] Max concurrent requests = 0
[10:14:58 ERR] HTTP POST /io responded 500 in 64094.6205 ms
System.Exception: Unable to start a local compute server
at rhino.compute.ComputeChildren.LaunchCompute(Queue`1 processQueue, Boolean waitUntilServing) in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ComputeChildren.cs:line 205
at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ComputeChildren.cs:line 85
at rhino.compute.ReverseProxyModule.<>c.<Initialize>b__4_0() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 27
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at rhino.compute.ReverseProxyModule.AwaitInitTask() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 100
at rhino.compute.ReverseProxyModule.ReverseProxyPost(HttpRequest req, HttpResponse res) in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 160
at Carter.CarterExtensions.<>c__DisplayClass1_0.<<CreateRouteHandler>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
[10:14:58 ERR] Connection id "0HMPED3KUQAC2", Request id "0HMPED3KUQAC2:00000002": An unhandled exception was thrown by the application.
System.Exception: Unable to start a local compute server
at rhino.compute.ComputeChildren.LaunchCompute(Queue`1 processQueue, Boolean waitUntilServing) in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ComputeChildren.cs:line 205
at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ComputeChildren.cs:line 85
at rhino.compute.ReverseProxyModule.<>c.<Initialize>b__4_0() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 27
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at rhino.compute.ReverseProxyModule.AwaitInitTask() in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 100
at rhino.compute.ReverseProxyModule.ReverseProxyPost(HttpRequest req, HttpResponse res) in D:\BuildAgent\work\4852f584398a78e4\src\rhino.compute\ReverseProxy.cs:line 160
at Carter.CarterExtensions.<>c__DisplayClass1_0.<<CreateRouteHandler>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)