Trying the embedded client from latest nuget on WIndows 10 64 bit and getting the following error trying to create a projection .
[12036,25,10:37:07.493] ‘$streams’ projection source has been written
[12036,25,10:37:07.680] The ‘deliveryproj’ projection faulted due to ‘The projection subsystem failed to load a libjs1.so/js1.dll/… or one of its dependencies. The original error message is: Unable to load DLL ‘js1’: The specified module could not be found. (Exception from HRESULT: 0x8007007E)’
[12036,25,10:37:07.680] ‘deliveryproj’ projection source has been written
code is
var projectionManager = new ProjectionsManager(
new EventStore.ClientAPI.Common.Log.ConsoleLogger(), //fixme ilogger wrapper
http,
new TimeSpan(1, 0, 0));
var all = await projectionManager.ListAllAsync();
//fixme use nameof class
var projection = @"fromCategory(‘deliveries’)
.foreachStream()
.whenAny(function(state, event){
linkTo(‘deliveryevents’, event);
})";
await projectionManager.CreateContinuousAsync(“deliveryproj” , projection, credentials);
var all2 = await projectionManager.ListAllAsync(); // there are now 5.
C# projects are forced to 64 bit which is a requirement for Service Fabric.
Nuget config
Any suggestions ?
Ben