Open bertt opened 7 years ago
The error is:
System.MissingMethodException: 'Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.'
Stack:
" at Ductus.FluentDocker.Common.Logger.<>c.<.cctor>b__2_0()\r\n at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)\r\n at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)\r\n at System.Lazy`1.CreateValue()\r\n at Ductus.FluentDocker.Common.Logger.Log(String message)\r\n at Ductus.FluentDocker.Executors.ProcessExecutor`2.Execute()\r\n at Ductus.FluentDocker.Services.Hosts.Discover()\r\n at pwg.core.GostRepository..ctor() in D:\\dev\\github.com\\gost\\play-with-gost\\app\\pwg.core\\GostRepository.cs:line 18\r\n at pwg.web.Controllers.GostInstanceController.Get() in D:\\dev\\github.com\\gost\\play-with-gost\\app\\pwg.web\\Controllers\\GostInstanceController.cs:line 14\r\n at lambda_method(Closure , Object , Object[] )\r\n at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)\r\n at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()"
The site uses a custom build of ductus.fluentdocker (https://www.nuget.org/packages/Ductus.FluentDocker2) with dependency on newtonsoft.json 10 instead of 9 in the original code. Otherwise there is a dependency runtime error in the website when calling docker tooling.
How to use the official nuget version? (https://www.nuget.org/packages/Ductus.FluentDocker/)