Could not load file or assembly 'IKVM.OpenJDK.Security, Version=8.1.5717.0

825 Views Asked by At

After upgration from Saxon API Version(9.7.0.6) to 10.5.1.0 we get below issue on code sample line: Could not load file or assembly 'IKVM.OpenJDK.Security, Version=8.1.5717.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The system cannot find the file specified.

Code Sample: _healthCheckServiceHost = new WebServiceHost(new NancyWcfGenericService(), new Uri(httpEndPoint));

3

There are 3 best solutions below

0
Michael Kay On

It's a little strange that none of your code samples have any obvious relationship to Saxon.

It's always difficult to advise on configuration/installation issues, because there's such a wide variety of things you can do to make it fail, but the first thing we need is exact details of how you installed the product, and configuration details of your platform.

3
Dipak Shinde On
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)

at System.RuntimeType.RuntimeTypeCache.GetEnclosingType() at Nancy.TinyIoc.TinyIoCContainer.b__14(Type type) at System.Linq.Enumerable.WhereListIterator1.MoveNext() at Nancy.TinyIoc.TinyIoCContainer.AutoRegisterInternal(IEnumerable1 assemblies, DuplicateImplementationActions duplicateAction, Func2 registrationPredicate) at Nancy.DefaultNancyBootstrapper.AutoRegister(TinyIoCContainer container, IEnumerable1 ignoredAssemblies) at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise() at Nancy.Hosting.Wcf.NancyWcfGenericService..ctor(INancyBootstrapper bootstrapper) at Diagnostics.RuleEngine.WindowsService.BootstrapService.StartHealthCheckMonitor() in C:..\Diagnostics.RuleEngine.WindowsService\BootstrapService.cs:line 94 at Diagnostics.RuleEngine.WindowsService.BootstrapService.Start() in C:..\Diagnostics.RuleEngine.WindowsService\BootstrapService.cs:line 43 at Diagnostics.RuleEngine.WindowsService.Program.<>c.b__0_2(BootstrapService tc) in C:..\Diagnostics.RuleEngine.WindowsService\Program.cs:line 37

0
Dipak Shinde On

"IKVM.OpenJDK.Charsets.dll" not load in debug folder. So I have added manually then It working fine. Thanks @MichaelKay and @MartinHonnen.