I'm trying to test out a version of [https://github.com/dotnet/orleans/tree/master/Samples/HelloWorld](Standalone server/client hello world example) and I'm getting an error "Exc level 0: System.Runtime.Serialization.SerializationException: Attempt to read past the end of the input stream: CurrentPosition=12, n=4, totalLength=14" on the server side. I'm seeing the similar issue #581 but I wasn't be able to solve my problem. I'm attaching the details below:
namespace CustomizedPlacementGrains
{
/// <summary>
/// Grain implementation class Grain1.
/// </summary>
public class CustomizedPlacementGrain : Grain, CustomizedPlacementGrainInterfaces.ICustomizedPlacementGrain
{
private string text = "hello world!";
public Task<string> SayHello(string msg)
{
var oldText = text;
text = msg;
return Task.FromResult(oldText);
}
}
}
Program from the client side:
static int Main(string[] args)
{
var config = ClientConfiguration.LocalhostSilo();
//var config = ClientConfiguration.LoadFromFile("ClientConfiguration.xml");
try
{
InitializeWithRetries(config, initializeAttemptsBeforeFailing: 5);
}
catch (Exception ex)
{
Console.WriteLine($"Orleans client initialization failed failed due to {ex}");
Console.ReadLine();
return 1;
}
DoClientWork().Wait();
Console.WriteLine("Press Enter to terminate...");
Console.ReadLine();
return 0;
}
private static void InitializeWithRetries(ClientConfiguration config, int initializeAttemptsBeforeFailing)
{
int attempt = 0;
while (true)
{
try
{
GrainClient.Initialize(config);
Console.WriteLine("Client successfully connect to silo host");
break;
}
catch (SiloUnavailableException)
{
attempt++;
Console.WriteLine($"Attempt {attempt} of {initializeAttemptsBeforeFailing} failed to initialize the Orleans client.");
if (attempt > initializeAttemptsBeforeFailing)
{
throw;
}
Thread.Sleep(TimeSpan.FromSeconds(2));
}
}
program from the server side:
public class Program
{
private static OrleansHostWrapper hostWrapper;
static int Main(string[] args)
{
int exitCode = StartSilo(args);
Console.WriteLine("Press Enter to terminate...");
Console.ReadLine();
exitCode += ShutdownSilo();
//either StartSilo or ShutdownSilo failed would result on a non-zero exit code.
return exitCode;
}
private static int StartSilo(string[] args)
{
// define the cluster configuration
var config = ClusterConfiguration.LocalhostPrimarySilo();
//var config = new ClusterConfiguration();
//config.LoadFromFile("OrleansConfiguration.xml");
config.AddMemoryStorageProvider();
hostWrapper = new OrleansHostWrapper(config, args);
return hostWrapper.Run();
}
private static int ShutdownSilo()
{
if (hostWrapper != null)
{
return hostWrapper.Stop();
}
return 0;
}
}
These examples are pretty much unmodified from the Sample folder.
[2017-05-30 06:37:55.451 GMT 4 INFO 100000 AssemblyLoader.Client ] Recursively searching for assemblies in C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug...
[2017-05-30 06:37:55.546 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\CustomizedPlacementGrainInterfaces.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.554 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\CustomizedPlacementGrains.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.841 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.CodeAnalysis.CSharp.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.968 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.CodeAnalysis.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.971 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.974 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.Extensions.DependencyInjection.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.992 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Newtonsoft.Json.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:55.995 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Orleans.dll
* Assembly filename is excluded.
[2017-05-30 06:37:55.997 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansCodeGenerator.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.004 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansRuntime.dll
* Assembly filename is excluded.
[2017-05-30 06:37:56.018 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\System.Collections.Immutable.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.038 GMT 4 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\System.Reflection.Metadata.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.040 GMT 4 INFO 100000 AssemblyLoader.Client ] Loading assembly C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansProviders.dll...
[2017-05-30 06:37:56.064 GMT 4 INFO 100000 AssemblyLoader.Client ] 1 assemblies loaded.
[2017-05-30 06:37:56.095 GMT 4 INFO 100313 OutsideRuntimeClient ] ---------- Initializing OutsideRuntimeClient on Hypatia at 10.130.68.209 Client Id = *cli/0927258c ----------
[2017-05-30 06:37:56.116 GMT 4 INFO 100314 OutsideRuntimeClient ] ---------- Starting OutsideRuntimeClient with runtime Version='1.4.0.0 (Release).' in AppDomain=<AppDomain.Id=1, AppDomain.FriendlyName=CustomPlacementTestClient.exe> Config=
Platform version info:
Orleans version: 1.4.0.0 (Release).
.NET version: 4.0.30319.42000
Is .NET 4.5=True
OS version: Microsoft Windows NT 6.2.9200.0
GC Type=Server GCLatencyMode=Batch
Host: Hypatia
Processor Count: 8
Client Configuration:
Config File Name:
Start time: 2017-05-30 06:37:56.106 GMT
Gateway Provider: Config
Gateways[1]:
127.0.0.1:40000
Preferred Gateway Index: -1
GatewayListRefreshPeriod: 00:01:00
Preferred Address Family: InterNetwork
DNS Host Name: Hypatia
Client Name: Client
Tracing:
Default Trace Level: Info
TraceLevelOverrides: None
Trace to Console: True
Trace File Name: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Client-2017-05-30-06.37.53.649Z.log
LargeMessageWarningThreshold: 85000
PropagateActivityId: False
BulkMessageLimit: 5
Statistics:
MetricsTableWriteInterval: 00:00:30
PerfCounterWriteInterval: -00:00:00.0010000
LogWriteInterval: 00:05:00
WriteLogStatisticsToTable: True
StatisticsCollectionLevel: Info
Messaging:
Response timeout: 00:30:00
Maximum resend count: 0
Resend On Timeout: False
Maximum Socket Age: 10675199.02:48:05.4775807
Drop Expired Messages: True
Client Sender Buckets: 8192
Buffer Pool Buffer Size: 4096
Buffer Pool Max Size: 10000
Buffer Pool Preallocation Size: 250
Fallback serializer:
.NET:
.NET thread pool sizes - Min: Worker Threads=8 Completion Port Threads=8
.NET thread pool sizes - Max: Worker Threads=32767 Completion Port Threads=1000
Providers:
No providers configured.
[2017-05-30 06:37:56.150 GMT 4 INFO 101309 Messaging.GatewayManager ] Found 1 knownGateways from Gateway listProvider [gwy.tcp://127.0.0.1:40000/0]
[2017-05-30 06:37:57.779 GMT 4 WARNING 100178 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Unable to connect to gateway at address gwy.tcp://127.0.0.1:40000/0 on trial 0.
[2017-05-30 06:37:57.782 GMT 4 WARNING 100913 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Marking gateway at address gwy.tcp://127.0.0.1:40000/0 as Disconnected
[2017-05-30 06:37:57.799 GMT 6 INFO 101309 Messaging.GatewayManager 10.130.68.209:0] Refreshed the live GateWay list. Found 1 gateways from Gateway listProvider: [gwy.tcp://127.0.0.1:40000/0]. Picked only known live out of them. Now has 1 live Gateways: [gwy.tcp://127.0.0.1:40000/0]. Previous refresh time was = 5/30/2017 6:37:56 AM
[2017-05-30 06:37:58.816 GMT 4 WARNING 100178 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Unable to connect to gateway at address gwy.tcp://127.0.0.1:40000/0 on trial 1.
[2017-05-30 06:37:58.819 GMT 4 WARNING 100913 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Marking gateway at address gwy.tcp://127.0.0.1:40000/0 as Disconnected
[2017-05-30 06:37:58.820 GMT 6 INFO 101309 Messaging.GatewayManager 10.130.68.209:0] Refreshed the live GateWay list. Found 1 gateways from Gateway listProvider: [gwy.tcp://127.0.0.1:40000/0]. Picked only known live out of them. Now has 1 live Gateways: [gwy.tcp://127.0.0.1:40000/0]. Previous refresh time was = 5/30/2017 6:37:57 AM
[2017-05-30 06:37:58.841 GMT 4 WARNING 100912 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Marking gateway at address gwy.tcp://127.0.0.1:40000/0 as Dead in my client local gateway list.
[2017-05-30 06:37:58.851 GMT 4 WARNING 100157 CallbackData 10.130.68.209:0] The target silo became unavailable for message: Request *cli/0927258c@0b04ec94->S127.0.0.1:40000:0TypeManagerId@S00000011 #2: global::Orleans.Runtime.IClusterTypeManager:GetClusterTypeCodeMap(). Target History is: <S127.0.0.1:40000:0:TypeManagerId:@S00000011>. See https://aka.ms/orleans-troubleshooting for troubleshooting help. About to break its promise.
[2017-05-30 06:37:58.859 GMT 5 WARNING 100011 OutsideRuntimeClient 10.130.68.209:0] No callback for response message: Unrecoverable Rejection (info: Target silo S127.0.0.1:40000:0 is unavailable) Response S127.0.0.1:40000:0TypeManagerId@S00000011->*cli/0927258c@0b04ec94 #2: global::Orleans.Runtime.IClusterTypeManager:GetClusterTypeCodeMap()
[2017-05-30 06:37:58.868 GMT 4 INFO 100000 OutsideRuntimeClient 10.130.68.209:0] OutsideRuntimeClient.Reset(): client Id *cli/0927258c
[2017-05-30 06:37:58.890 GMT 4 INFO 100704 ClientLogStatistics 10.130.68.209:0] Statistics: ^^^
App.Requests.Latency.Average.Millis=2092.000
App.Requests.LatencyHistogram.Millis=[1677.7216:3355.4431]=1,
App.Requests.TimedOut.Current=0
App.Requests.Total.Requests.Current=1
Client.ConnectedGatewayCount=0
Messaging.Expired.AtDispatch.Current=0
Messaging.Expired.AtInvoke.Current=0
Messaging.Expired.AtReceive.Current=0
Messaging.Expired.AtRespond.Current=0
Messaging.Expired.AtSend.Current=0
Messaging.Received.BatchSize.PerSocketDirection.ClientToGateway=0.000
Messaging.Received.BatchSizeBytesHistogram.Bytes.PerSocketDirection.ClientToGateway=
Messaging.Received.Bytes.Header.Current=0
Messaging.Received.Bytes.Total.Current=0
Messaging.Received.Direction.OneWay.Current=0
Messaging.Received.Direction.Request.Current=0
Messaging.Received.Direction.Response.Current=0
Messaging.Received.Messages.Total.Current=0
Messaging.Received.MessageSizeHistogram.Bytes=
Messaging.Rejected.Request.Current=1
Messaging.Rerouted.OneWay.Current=0
Messaging.Rerouted.Request.Current=0
Messaging.Rerouted.Response.Current=0
Messaging.Sent.BatchSize.PerSocketDirection.ClientToGateway=0.000
Messaging.Sent.BatchSizeBytesHistogram.Bytes.PerSocketDirection.ClientToGateway=
Messaging.Sent.Bytes.Header.Current=0
Messaging.Sent.Bytes.Total.Current=0
Messaging.Sent.Direction.OneWay.Current=0
Messaging.Sent.Direction.Request.Current=0
Messaging.Sent.Direction.Response.Current=0
Messaging.Sent.Messages.Total.Current=0
Messaging.Sent.MessageSizeHistogram.Bytes=
Networking.Sockets.ClientToGateway.Duplex.Closed.Current=2
Networking.Sockets.ClientToGateway.Duplex.Opened.Current=0
Serialization.BufferPool.AllocatedBuffers.Current=250
Serialization.BufferPool.BuffersInPool=218
Serialization.BufferPool.CheckedInBuffers.Current=250
Serialization.BufferPool.CheckedOutBuffers.Current=282
Serialization.BufferPool.DroppedBuffers.Current=0
Serialization.BufferPool.DroppedTooLargeBuffers.Current=0
Serialization.BufferPool.InUse.AllocatedAndNotInPool_Buffers=32
Serialization.BufferPool.InUse.CheckedOutAndNotCheckedIn_Buffers=32
[2017-05-30 06:37:58.897 GMT 4 INFO 100000 OutsideRuntimeClient 10.130.68.209:0] OutsideRuntimeClient.ConstructorReset(): client Id *cli/0927258c
[2017-05-30 06:38:01.167 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] Recursively searching for assemblies in C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug...
[2017-05-30 06:38:01.169 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\CustomizedPlacementGrainInterfaces.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.171 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\CustomizedPlacementGrains.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.174 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.CodeAnalysis.CSharp.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.176 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.CodeAnalysis.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.179 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.180 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Microsoft.Extensions.DependencyInjection.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.182 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Newtonsoft.Json.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.183 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Orleans.dll
* Assembly filename is excluded.
[2017-05-30 06:38:01.185 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansCodeGenerator.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.186 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansRuntime.dll
* Assembly filename is excluded.
[2017-05-30 06:38:01.189 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\System.Collections.Immutable.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.190 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\System.Reflection.Metadata.dll
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:38:01.191 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] Loading assembly C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\OrleansProviders.dll...
[2017-05-30 06:38:01.192 GMT 4 INFO 100000 AssemblyLoader.Client 10.130.68.209:0] 1 assemblies loaded.
[2017-05-30 06:38:01.202 GMT 4 INFO 100313 OutsideRuntimeClient 10.130.68.209:0] ---------- Initializing OutsideRuntimeClient on Hypatia at 10.130.68.209 Client Id = *cli/a93ad6bf ----------
[2017-05-30 06:38:01.204 GMT 4 INFO 100314 OutsideRuntimeClient 10.130.68.209:0] ---------- Starting OutsideRuntimeClient with runtime Version='1.4.0.0 (Release).' in AppDomain=<AppDomain.Id=1, AppDomain.FriendlyName=CustomPlacementTestClient.exe> Config=
Platform version info:
Orleans version: 1.4.0.0 (Release).
.NET version: 4.0.30319.42000
Is .NET 4.5=True
OS version: Microsoft Windows NT 6.2.9200.0
GC Type=Server GCLatencyMode=Batch
Host: Hypatia
Processor Count: 8
Client Configuration:
Config File Name:
Start time: 2017-05-30 06:38:01.204 GMT
Gateway Provider: Config
Gateways[1]:
127.0.0.1:40000
Preferred Gateway Index: -1
GatewayListRefreshPeriod: 00:01:00
Preferred Address Family: InterNetwork
DNS Host Name: Hypatia
Client Name: Client
Tracing:
Default Trace Level: Info
TraceLevelOverrides: None
Trace to Console: True
Trace File Name: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestClient\bin\Debug\Client-2017-05-30-06.37.53.649Z.log
LargeMessageWarningThreshold: 85000
PropagateActivityId: False
BulkMessageLimit: 5
Statistics:
MetricsTableWriteInterval: 00:00:30
PerfCounterWriteInterval: -00:00:00.0010000
LogWriteInterval: 00:05:00
WriteLogStatisticsToTable: True
StatisticsCollectionLevel: Info
Messaging:
Response timeout: 00:30:00
Maximum resend count: 0
Resend On Timeout: False
Maximum Socket Age: 10675199.02:48:05.4775807
Drop Expired Messages: True
Client Sender Buckets: 8192
Buffer Pool Buffer Size: 4096
Buffer Pool Max Size: 10000
Buffer Pool Preallocation Size: 250
Fallback serializer:
.NET:
.NET thread pool sizes - Min: Worker Threads=8 Completion Port Threads=8
.NET thread pool sizes - Max: Worker Threads=32767 Completion Port Threads=1000
Providers:
No providers configured.
[2017-05-30 06:38:01.210 GMT 4 INFO 101309 Messaging.GatewayManager 10.130.68.209:0] Found 1 knownGateways from Gateway listProvider [gwy.tcp://127.0.0.1:40000/0]
[2017-05-30 06:38:01.232 GMT 4 INFO 100908 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Connected to gateway at address gwy.tcp://127.0.0.1:40000/0 on trial 0.
[2017-05-30 06:38:01.268 GMT 10 INFO 100000 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Starting AsyncAgent Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 on managed thread 10
[2017-05-30 06:38:01.268 GMT 11 INFO 100000 Messaging.GatewayClientReceiver/gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Starting AsyncAgent Messaging.GatewayClientReceiver/gwy.tcp://127.0.0.1:40000/0 on managed thread 11
[2017-05-30 06:38:01.417 GMT 4 INFO 100000 OutsideRuntimeClient 10.130.68.209:0] OutsideRuntimeClient.Reset(): client Id *cli/a93ad6bf
[2017-05-30 06:38:01.419 GMT 11 INFO 100328 Messaging.GatewayClientReceiver/gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Stopping AsyncAgent Messaging.GatewayClientReceiver/gwy.tcp://127.0.0.1:40000/0 that runs on managed thread 11
[2017-05-30 06:38:01.440 GMT 4 INFO 100704 ClientLogStatistics 10.130.68.209:0] Statistics: ^^^
App.Requests.Latency.Average.Millis=1138.000
App.Requests.LatencyHistogram.Millis=[104.8576:209.7151]=1, [1677.7216:3355.4431]=1,
App.Requests.TimedOut.Current=0
App.Requests.Total.Requests.Current=2, Delta=1
Client.ConnectedGatewayCount=0
Messaging.Expired.AtDispatch.Current=0
Messaging.Expired.AtInvoke.Current=0
Messaging.Expired.AtReceive.Current=0
Messaging.Expired.AtRespond.Current=0
Messaging.Expired.AtSend.Current=0
Messaging.Received.BatchSize.PerSocketDirection.ClientToGateway=0.000
Messaging.Received.BatchSizeBytesHistogram.Bytes.PerSocketDirection.ClientToGateway=
Messaging.Received.Bytes.Header.Current=222, Delta=222
Messaging.Received.Bytes.Total.Current=1721, Delta=1721
Messaging.Received.Direction.OneWay.Current=0
Messaging.Received.Direction.Request.Current=0
Messaging.Received.Direction.Response.Current=1, Delta=1
Messaging.Received.Messages.From.S127.0.0.1:40000:0.Current=1
Messaging.Received.Messages.Total.Current=1, Delta=1
Messaging.Received.MessageSizeHistogram.Bytes=[1024:2047]=1,
Messaging.Rejected.Request.Current=1
Messaging.Rerouted.OneWay.Current=0
Messaging.Rerouted.Request.Current=0
Messaging.Rerouted.Response.Current=0
Messaging.Sent.BatchSize.PerSocketDirection.ClientToGateway=0.000
Messaging.Sent.BatchSizeBytesHistogram.Bytes.PerSocketDirection.ClientToGateway=
Messaging.Sent.Bytes.Header.Current=221, Delta=221
Messaging.Sent.Bytes.Total.Current=243, Delta=243
Messaging.Sent.Direction.OneWay.Current=0
Messaging.Sent.Direction.Request.Current=1, Delta=1
Messaging.Sent.Direction.Response.Current=0
Messaging.Sent.Messages.To.S127.0.0.1:40000:0.Current=1
Messaging.Sent.Messages.Total.Current=1, Delta=1
Messaging.Sent.MessageSizeHistogram.Bytes=[128:255]=1,
Networking.Sockets.ClientToGateway.Duplex.Closed.Current=3, Delta=1
Networking.Sockets.ClientToGateway.Duplex.Opened.Current=1, Delta=1
Runtime.Threads.AsynchAgent.Messaging.GatewayClientReceiver.Current=0
Runtime.Threads.AsynchAgent.Messaging.GatewayConnection.Current=1
Runtime.Threads.AsynchAgent.TotalThreadsCreated.Current=2
Serialization.BufferPool.AllocatedBuffers.Current=500, Delta=250
Serialization.BufferPool.BuffersInPool=218
Serialization.BufferPool.CheckedInBuffers.Current=504, Delta=254
Serialization.BufferPool.CheckedOutBuffers.Current=569, Delta=287
Serialization.BufferPool.DroppedBuffers.Current=0
Serialization.BufferPool.DroppedTooLargeBuffers.Current=0
Serialization.BufferPool.InUse.AllocatedAndNotInPool_Buffers=282
Serialization.BufferPool.InUse.CheckedOutAndNotCheckedIn_Buffers=65
[2017-05-30 06:38:01.419 GMT 10 INFO 100312 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Stop request processed
[2017-05-30 06:38:01.468 GMT 4 INFO 100000 OutsideRuntimeClient 10.130.68.209:0] OutsideRuntimeClient.ConstructorReset(): client Id *cli/a93ad6bf
[2017-05-30 06:38:01.468 GMT 10 INFO 100328 Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 10.130.68.209:0] Stopping AsyncAgent Messaging.GatewayConnection/GatewayClientSender_gwy.tcp://127.0.0.1:40000/0 that runs on managed thread 10
server log:
[2017-05-30 06:37:54.587 GMT 1 INFO 100404 Silo 127.0.0.1:22222] Silo starting with GC settings: ServerGC=True GCLatencyMode=Batch
[2017-05-30 06:37:54.591 GMT 1 INFO 100403 Silo 127.0.0.1:22222] -------------- Initializing Primary silo on host Hypatia MachineName HYPATIA at 127.0.0.1:22222, gen 233822274 --------------
[2017-05-30 06:37:54.632 GMT 1 INFO 100415 Silo 127.0.0.1:22222] Starting silo Hypatia with the following configuration=
Config File Name:
Host: Hypatia
Start time: 2017-05-30 06:37:54.593 GMT
Primary node: 127.0.0.1:22222
Platform version info:
Orleans version: 1.5.0.0-beta1 (Release).
.NET version: 4.0.30319.42000
OS version: Microsoft Windows NT 6.2.9200.0
App config file: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\CustomPlacementTestHost.exe.Config
GC Type=Server GCLatencyMode=Batch
Global configuration:
System Ids:
ServiceId: 00000000-0000-0000-0000-000000000000
DeploymentId:
Subnet:
Seed nodes: 127.0.0.1:22222
Messaging:
Response timeout: 00:30:00
Maximum resend count: 0
Resend On Timeout: False
Maximum Socket Age: 10675199.02:48:05.4775807
Drop Expired Messages: True
Silo Sender queues: 8
Gateway Sender queues: 8
Client Drop Timeout: 00:01:00
Buffer Pool Buffer Size: 4096
Buffer Pool Max Size: 10000
Buffer Pool Preallocation Size: 250
Maximum forward count: 2
Fallback serializer:
Liveness:
LivenessEnabled: True
LivenessType: MembershipTableGrain
ProbeTimeout: 00:00:10
TableRefreshTimeout: 00:01:00
DeathVoteExpirationTimeout: 00:02:00
NumMissedProbesLimit: 3
NumProbedSilos: 3
NumVotesForDeathDeclaration: 2
UseLivenessGossip: True
ValidateInitialConnectivity: True
IAmAliveTablePublishTimeout: 00:05:00
NumMissedTableIAmAliveLimit: 2
MaxJoinAttemptTime: 00:05:00
ExpectedClusterSize: 20
MultiClusterNetwork: N/A
SystemStore:
SystemStore ConnectionString: null
Reminders ConnectionString: null
Application:
Defaults:
Deactivate if idle for: 02:00:00
PlacementStrategy:
Default Placement Strategy: RandomPlacement
Deployment Load Publisher Refresh Time: 00:00:01
Activation CountBased Placement Choose Out Of: 2
Grain directory cache:
Maximum size: 1000000 grains
Initial TTL: 00:00:30
Maximum TTL: 00:04:00
TTL extension factor: 2.00
Directory Caching Strategy: Adaptive
Grain directory:
Lazy deregistration delay: 00:01:00
Client registration refresh: 00:05:00
Reminder Service:
ReminderServiceType: ReminderTableGrain
Consistent Ring:
Use Virtual Buckets Consistent Ring: True
Num Virtual Buckets Consistent Ring: 30
Providers:
StorageProviders:
Name=MemoryStore, Type=Orleans.Storage.MemoryStorage, Properties=[NumStorageGrains]
Silo configuration:
Silo Name: Hypatia
Generation: 233822274
Host Name or IP Address: localhost
DNS Host Name: Hypatia
Port: 22222
Subnet:
Preferred Address Family: InterNetwork
Proxy Gateway: 127.0.0.1:40000
IsPrimaryNode: True
Scheduler:
Max Active Threads: 8
Processor Count: 8
Delay Warning Threshold: 00:00:10
Activation Scheduling Quantum: 00:00:00.1000000
Turn Warning Length Threshold: 00:00:00.2000000
Inject More Worker Threads: False
MinDotNetThreadPoolSize: 200
.NET thread pool sizes - Min: Worker Threads=8 Completion Port Threads=8
.NET thread pool sizes - Max: Worker Threads=32767 Completion Port Threads=1000
.NET ServicePointManager - DefaultConnectionLimit=200 Expect100Continue=False UseNagleAlgorithm=False
Load Shedding Enabled: False
Load Shedding Limit: 95
SiloShutdownEventName:
Debug:
Tracing:
Default Trace Level: Info
TraceLevelOverrides: None
Trace to Console: True
Trace File Name: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Hypatia-2017-05-30-06.37.54.428Z.log
LargeMessageWarningThreshold: 85000
PropagateActivityId: False
BulkMessageLimit: 5
Statistics:
MetricsTableWriteInterval: 00:00:30
PerfCounterWriteInterval: 00:00:30
LogWriteInterval: 00:05:00
WriteLogStatisticsToTable: True
StatisticsCollectionLevel: Info
[2017-05-30 06:37:56.078 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] Searching for assemblies in C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug...
[2017-05-30 06:37:56.144 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\CustomizedPlacementGrainInterfaces.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.263 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\EntityFramework.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.269 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\EntityFramework.SqlServer.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.467 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Microsoft.CodeAnalysis.CSharp.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.552 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Microsoft.CodeAnalysis.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.555 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.560 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Microsoft.Extensions.DependencyInjection.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.579 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Newtonsoft.Json.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.581 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Orleans.dll
* Assembly filename is excluded.
[2017-05-30 06:37:56.584 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\OrleansCodeGenerator.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.592 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\OrleansRuntime.dll
* Assembly filename is excluded.
[2017-05-30 06:37:56.596 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\OrleansTelemetryConsumers.Counters.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.597 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.AppContext.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.611 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Collections.Immutable.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.614 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Console.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.615 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Diagnostics.FileVersionInfo.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.617 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Diagnostics.StackTrace.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.620 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.IO.Compression.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.622 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.IO.FileSystem.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.624 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.IO.FileSystem.Primitives.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.654 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Reflection.Metadata.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.656 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Runtime.InteropServices.RuntimeInformation.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.658 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Security.Cryptography.Algorithms.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.659 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Security.Cryptography.Encoding.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.660 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Security.Cryptography.Primitives.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.662 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Security.Cryptography.X509Certificates.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.715 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Text.Encoding.CodePages.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.717 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Threading.Thread.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.720 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.ValueTuple.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.721 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Xml.ReaderWriter.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.722 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Xml.XmlDocument.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.724 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Xml.XPath.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.727 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] User assembly ignored: C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\System.Xml.XPath.XDocument.dll
* Assembly does not contain any acceptable grain types.
* Assembly contains no types assignable from Orleans.Providers.IProvider.
[2017-05-30 06:37:56.729 GMT 1 WARNING 101705 AssemblyLoader.Silo 127.0.0.1:22222] Unable to find directory C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\Applications; skipping.
[2017-05-30 06:37:56.729 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] Loading assembly C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\CustomizedPlacementGrains.dll...
[2017-05-30 06:37:56.758 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] Loading assembly C:\Users\t-lex\Documents\Visual Studio 2017\Projects\CustomPlacementTestHost\CustomPlacementTestHost\bin\Debug\OrleansProviders.dll...
[2017-05-30 06:37:56.761 GMT 1 INFO 100000 AssemblyLoader.Silo 127.0.0.1:22222] 2 assemblies loaded.
[2017-05-30 06:37:57.343 GMT 1 INFO 100000 Scheduler.OrleansTaskScheduler 127.0.0.1:22222] Starting OrleansTaskScheduler with 8 Max Active application Threads and 1 system thread.
[2017-05-30 06:37:57.382 GMT 1 INFO 101010 Runtime.Messaging.IncomingMessageAcceptor 127.0.0.1:22222] Opened a listening socket at address 127.0.0.1:22222
[2017-05-30 06:37:57.392 GMT 1 INFO 101010 Runtime.Messaging.GatewayAcceptor 127.0.0.1:22222] Opened a listening socket at address 127.0.0.1:40000
[2017-05-30 06:37:57.443 GMT 1 INFO 100000 VirtualBucketsRingProvider 127.0.0.1:22222] Starting VirtualBucketsRingProvider on silo S127.0.0.1:22222:233822274/xAA0F9AF7.
[2017-05-30 06:37:57.481 GMT 1 INFO 103003 VirtualBucketsRingProvider 127.0.0.1:22222] Added Server S127.0.0.1:22222:233822274/xAA0F9AF7. Current view: [S127.0.0.1:22222:233822274 -> <MultiRange: Size=x100000000, %Ring=100.000%>]
[2017-05-30 06:37:57.485 GMT 1 INFO 103005 VirtualBucketsRingProvider 127.0.0.1:22222] -NotifyLocalRangeSubscribers about old <(0 0], Size=x100000000, %Ring=100.000%> new <MultiRange: Size=x100000000, %Ring=100.000%> increased? True
[2017-05-30 06:37:57.511 GMT 1 INFO 100000 Silo 127.0.0.1:22222] Skip multicluster oracle creation (no multicluster network configured)
[2017-05-30 06:37:57.512 GMT 1 INFO 100422 Silo 127.0.0.1:22222] -------------- Started silo S127.0.0.1:22222:233822274, ConsistentHashCode AA0F9AF7 --------------
[2017-05-30 06:37:57.513 GMT 1 INFO 100288 OrleansSiloHost 127.0.0.1:22222] Successfully initialized Orleans silo 'Hypatia' as a Primary node.
[2017-05-30 06:37:57.528 GMT 1 INFO 100441 OrleansSiloHost 127.0.0.1:22222] Silo shutdown event name: Hypatia-Shutdown
[2017-05-30 06:37:57.529 GMT 1 INFO 100442 OrleansSiloHost 127.0.0.1:22222] Created and set shutdown event Hypatia-Shutdown
[2017-05-30 06:37:57.539 GMT 1 INFO 100401 Silo 127.0.0.1:22222] Silo Start()
[2017-05-30 06:37:57.541 GMT 1 INFO 100430 Silo 127.0.0.1:22222] Configured ThreadPool.SetMinThreads() to values: 200,200. Previous values are: 8,8.
[2017-05-30 06:37:57.542 GMT 1 INFO 100436 Silo 127.0.0.1:22222] Configured .NET ServicePointManager to Expect100Continue=False, DefaultConnectionLimit=200, UseNagleAlgorithm=False to improve Azure storage performance.
[2017-05-30 06:37:57.582 GMT 1 INFO 101711 AssemblyLoader.Silo 127.0.0.1:22222] Loaded grain type summary for 8 types:
Grain class CustomizedPlacementGrains.CustomizedPlacementGrains.CustomizedPlacementGrain [846283063 (0x32714137)] from CustomizedPlacementGrains.dll implementing interfaces: CustomizedPlacementGrainInterfaces.CustomizedPlacementGrainInterfaces.ICustomizedPlacementGrain [1036298788 (0x3DC4AA24)]
Grain class Orleans.LogConsistency.Orleans.LogConsistency.LogConsistentGrainBase<TView> [-2062750837 (0x850CEB8B)] from Orleans.dll implementing interfaces:
Grain class Orleans.Providers.Orleans.Providers.MemoryStreamQueueGrain [1359359215 (0x51062CEF)] from OrleansProviders.dll implementing interfaces: Orleans.Providers.Orleans.Providers.IMemoryStreamQueueGrain [1158152105 (0x4507FFA9)]
Grain class Orleans.Runtime.Management.Orleans.Runtime.Management.ManagementGrain [1954798034 (0x7483D9D2)] from OrleansRuntime.dll implementing interfaces: Orleans.Runtime.Orleans.Runtime.IManagementGrain [-1734666656 (0x989B1660)]
Grain class Orleans.Runtime.MembershipService.Orleans.Runtime.MembershipService.GrainBasedMembershipTable [-2103923544 (0x8298ACA8)] from OrleansRuntime.dll implementing interfaces: Orleans.Orleans.IMembershipTableGrain [-1256503757 (0xB51B4633)]
Grain class Orleans.Runtime.ReminderService.Orleans.Runtime.ReminderService.GrainBasedReminderTable [-55315191 (0xFCB3F509)] from OrleansRuntime.dll implementing interfaces: Orleans.Orleans.IReminderTableGrain [-1135060418 (0xBC585A3E)]
Grain class Orleans.Storage.Orleans.Storage.MemoryStorageGrain [819348208 (0x30D642F0)] from OrleansRuntime.dll implementing interfaces: Orleans.Storage.Orleans.Storage.IMemoryStorageGrain [577125491 (0x22663C73)]
Grain class Orleans.Streams.Orleans.Streams.PubSubRendezvousGrain [1903070868 (0x716E8E94)] from OrleansRuntime.dll implementing interfaces: Orleans.Streams.Orleans.Streams.IPubSubRendezvousGrain [1746702088 (0x681C8F08)]
[2017-05-30 06:37:57.629 GMT 9 INFO 100000 Runtime.Scheduler.WorkerPoolThread/3 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/3 on managed thread 9
[2017-05-30 06:37:57.629 GMT 14 INFO 100000 Runtime.Scheduler.WorkerPoolThread/System.9 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/System.9 on managed thread 14
[2017-05-30 06:37:57.657 GMT 10 INFO 100000 Runtime.Scheduler.WorkerPoolThread/4 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/4 on managed thread 10
[2017-05-30 06:37:57.681 GMT 11 INFO 100000 Runtime.Scheduler.WorkerPoolThread/5 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/5 on managed thread 11
[2017-05-30 06:37:57.629 GMT 6 INFO 100000 Runtime.Scheduler.WorkerPoolThread/0 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/0 on managed thread 6
[2017-05-30 06:37:57.725 GMT 12 INFO 100000 Runtime.Scheduler.WorkerPoolThread/6 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/6 on managed thread 12
[2017-05-30 06:37:57.629 GMT 8 INFO 100000 Runtime.Scheduler.WorkerPoolThread/2 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/2 on managed thread 8
[2017-05-30 06:37:57.754 GMT 13 INFO 100000 Runtime.Scheduler.WorkerPoolThread/7 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/7 on managed thread 13
[2017-05-30 06:37:57.763 GMT 17 INFO 100000 Runtime.Messaging.IncomingMessageAcceptor 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.IncomingMessageAcceptor on managed thread 17
[2017-05-30 06:37:57.629 GMT 7 INFO 100000 Runtime.Scheduler.WorkerPoolThread/1 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/1 on managed thread 7
[2017-05-30 06:37:57.772 GMT 18 INFO 100000 Runtime.Messaging.SiloMessageSender/PingSender 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.SiloMessageSender/PingSender on managed thread 18
[2017-05-30 06:37:57.780 GMT 19 INFO 100000 Runtime.Messaging.SiloMessageSender/SystemSender 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.SiloMessageSender/SystemSender on managed thread 19
[2017-05-30 06:37:57.819 GMT 26 INFO 100000 Runtime.Messaging.IncomingMessageAgent/Ping 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/Ping on managed thread 26
[2017-05-30 06:37:57.831 GMT 17 INFO 100328 Runtime.Messaging.IncomingMessageAcceptor 127.0.0.1:22222] Stopping AsyncAgent Runtime.Messaging.IncomingMessageAcceptor that runs on managed thread 17
[2017-05-30 06:37:57.828 GMT 25 INFO 100000 Runtime.Messaging.IncomingMessageAgent/System 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/System on managed thread 25
[2017-05-30 06:37:57.854 GMT 27 INFO 100000 Runtime.Messaging.IncomingMessageAgent/Application 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/Application on managed thread 27
[2017-05-30 06:37:57.875 GMT 1 INFO 100000 Orleans.GrainDirectory.LocalGrainDirectory 127.0.0.1:22222] Start (SeverityLevel=Info)
[2017-05-30 06:37:57.963 GMT 23 INFO 100000 Runtime.GrainDirectory.AdaptiveDirectoryCacheMaintainer`1 127.0.0.1:22222] Starting AsyncAgent Runtime.GrainDirectory.AdaptiveDirectoryCacheMaintainer`1 on managed thread 23
[2017-05-30 06:37:57.968 GMT 24 INFO 100000 Runtime.GrainDirectory.GlobalSingleInstanceActivationMaintainer 127.0.0.1:22222] Starting AsyncAgent Runtime.GrainDirectory.GlobalSingleInstanceActivationMaintainer on managed thread 24
[2017-05-30 06:37:57.976 GMT 24 INFO 100328 Runtime.GrainDirectory.GlobalSingleInstanceActivationMaintainer 127.0.0.1:22222] Stopping AsyncAgent Runtime.GrainDirectory.GlobalSingleInstanceActivationMaintainer that runs on managed thread 24
[2017-05-30 06:37:58.005 GMT 5 INFO 100000 TypeManager 127.0.0.1:22222] OnRefreshClusterMapTimer: refresh start
[2017-05-30 06:37:58.019 GMT 1 INFO 100000 ReminderFactory 127.0.0.1:22222] Creating reminder grain service for type=Orleans.OrleansCodeGenReminderTableGrainReference
[2017-05-30 06:37:58.051 GMT 12 INFO 100507 Catalog 127.0.0.1:22222] Before collection#1: memory=12MB, #activations=0, collector=<#Activations=0, #Buckets=0, buckets=[]>.
[2017-05-30 06:37:58.053 GMT 14 INFO 103102 ProviderLoader/IStorageProvider 127.0.0.1:22222] Loaded provider of type Orleans.Storage.MemoryStorage Name=MemoryStore
[2017-05-30 06:37:58.076 GMT 12 INFO 100508 Catalog 127.0.0.1:22222] After collection#1: memory=12MB, #activations=0, collected 0 activations, collector=<#Activations=0, #Buckets=0, buckets=[]>, collection time=00:00:00.0286415.
[2017-05-30 06:37:58.092 GMT 14 INFO 0 Storage.MemoryStorage.1 127.0.0.1:22222] Init: Name=MemoryStore NumStorageGrains=10
[2017-05-30 06:37:58.106 GMT 14 INFO 100603 MembershipOracle 127.0.0.1:22222] MembershipOracle starting on host = Hypatia address = S127.0.0.1:22222:233822274 at 2017-05-30 06:37:57.406 GMT, backOffMax = 00:00:20
[2017-05-30 06:37:58.112 GMT 14 INFO 100635 MembershipTableFactory 127.0.0.1:22222] Creating membership table grain
[2017-05-30 06:37:58.170 GMT 9 INFO 100637 GrainBasedMembershipTable 127.0.0.1:22222] GrainBasedMembershipTable Activated.
[2017-05-30 06:37:58.254 GMT 14 INFO 100631 MembershipTableFactory 127.0.0.1:22222] -Connected to membership table provider.
[2017-05-30 06:37:58.291 GMT 7 INFO 100000 GrainBasedMembershipTable 127.0.0.1:22222] InitializeMembershipTable True.
[2017-05-30 06:37:58.943 GMT 10 INFO 100652 MembershipOracle 127.0.0.1:22222] -CleanupTable called on silo startup. Membership table 0 silos, 0 are Active, 0 are Dead, Version=<0, 0>. All silos: []
[2017-05-30 06:37:58.981 GMT 10 INFO 100660 MembershipOracle 127.0.0.1:22222] Starting IAmAliveUpdateTimer.
[2017-05-30 06:37:58.994 GMT 10 INFO 100604 MembershipOracle 127.0.0.1:22222] -BecomeActive
[2017-05-30 06:37:59.002 GMT 10 INFO 100614 MembershipOracle 127.0.0.1:22222] About to send pings to 0 nodes in order to validate communication in the Joining state. Pinged nodes = []
[2017-05-30 06:37:59.010 GMT 14 INFO 100634 MembershipOracle 127.0.0.1:22222] -ReadAll (called from BecomeActive) Membership table 1 silos, 1 are Active, 0 are Dead, Version=<2, 5>. All silos: [SiloAddress=S127.0.0.1:22222:233822274 SiloName=Hypatia Status=Active]
[2017-05-30 06:37:59.013 GMT 14 INFO 100605 MembershipOracle 127.0.0.1:22222] -Finished BecomeActive.
[2017-05-30 06:37:59.016 GMT 1 INFO 100702 WindowsPerfCountersStatistics 127.0.0.1:22222] Starting Windows perf counter stats collection with frequency=00:00:30
[2017-05-30 06:37:59.028 GMT 1 INFO 100714 SiloPerformanceMetrics 127.0.0.1:22222] Starting Silo Table metrics reporter with reportFrequency=00:00:30
[2017-05-30 06:37:59.034 GMT 14 INFO 100000 DeploymentLoadPublisher 127.0.0.1:22222] Starting DeploymentLoadPublisher.
[2017-05-30 06:37:59.065 GMT 12 INFO 100000 DeploymentLoadPublisher 127.0.0.1:22222] Started DeploymentLoadPublisher.
[2017-05-30 06:37:59.067 GMT 1 INFO 100000 Watchdog 127.0.0.1:22222] Starting Silo Watchdog.
[2017-05-30 06:37:59.074 GMT 29 INFO 100000 Runtime.Watchdog 127.0.0.1:22222] Starting AsyncAgent Runtime.Watchdog on managed thread 29
[2017-05-30 06:37:59.122 GMT 11 INFO 100000 GrainBasedReminderTable_S127.0.0.1:22222:233822274*grn/FCB3F509/00003039@ac15e7bb 127.0.0.1:22222] GrainBasedReminderTable *grn/FCB3F509/00003039 Activated. Full identity: [ActivationAddress: S127.0.0.1:22222:233822274*grn/FCB3F509/00003039@ac15e7bb, Full GrainId: [GrainId: *grn/FCB3F509/0000000000000000000000000000303903fffffffcb3f509-0xBB9ED002, IdCategory: Grain, BaseTypeCode: -55315191 (xFCB3F509), PrimaryKey: 12345 (x3039), UniformHashCode: 3147747330 (0xBB9ED002)], Full ActivationId: @4be03bae047cd57e4c5669e8ac15e7bb0000000000000000]
[2017-05-30 06:37:59.130 GMT 12 INFO 102925 Orleans.Runtime.ReminderService.LocalReminderService 127.0.0.1:22222] Starting Orleans.Runtime.ReminderService.LocalReminderService grain service on: S127.0.0.1:22222:233822274 xAA0F9AF7, with range
[2017-05-30 06:37:59.167 GMT 21 INFO 100000 Runtime.Messaging.GatewayAcceptor 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.GatewayAcceptor on managed thread 21
[2017-05-30 06:37:59.170 GMT 22 INFO 100000 Runtime.Messaging.GatewayClientCleanupAgent 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.GatewayClientCleanupAgent on managed thread 22
[2017-05-30 06:37:59.171 GMT 21 INFO 100328 Runtime.Messaging.GatewayAcceptor 127.0.0.1:22222] Stopping AsyncAgent Runtime.Messaging.GatewayAcceptor that runs on managed thread 21
[2017-05-30 06:37:59.194 GMT 1 INFO 100424 OrleansSiloHost 127.0.0.1:22222] Silo startup event name: Hypatia
[2017-05-30 06:37:59.238 GMT 1 INFO 100425 OrleansSiloHost 127.0.0.1:22222] Created and set startup event Hypatia
[2017-05-30 06:37:59.239 GMT 1 INFO 100402 OrleansSiloHost 127.0.0.1:22222] Silo Hypatia started successfully
[2017-05-30 06:38:01.237 GMT 28 INFO 101301 Orleans.Messaging.Gateway 127.0.0.1:22222] Recorded opened socket from endpoint 127.0.0.1:61310, client ID *cli/a93ad6bf.
[2017-05-30 06:38:01.353 GMT 28 ERROR 101030 Message 127.0.0.1:22222] !!!!!!!!!! Exception deserializing message body
Exc level 0: System.Runtime.Serialization.SerializationException: Attempt to read past the end of the input stream: CurrentPosition=12, n=4, totalLength=14
at Orleans.Serialization.BinaryTokenStreamReader.CheckLength(Int32 n, Int32& offset, Boolean& safeToUse)
at Orleans.Serialization.BinaryTokenStreamReader.CheckLength(Int32 n, Int32& offset)
at Orleans.Serialization.BuiltInTypes.DeserializeInvokeMethodRequest(Type expected, IDeserializationContext context)
at Orleans.Serialization.SerializationManager.DeserializeInner(Type expected, IDeserializationContext context)
at Orleans.Serialization.SerializationManager.Deserialize(Type t, BinaryTokenStreamReader stream)
at Orleans.Runtime.Message.DeserializeBody(SerializationManager serializationManager, List`1 bytes)
[2017-05-30 06:38:01.372 GMT 32 INFO 100000 Runtime.Messaging.GatewaySender/GatewaySiloSender_0 127.0.0.1:22222] Starting AsyncAgent Runtime.Messaging.GatewaySender/GatewaySiloSender_0 on managed thread 32
[2017-05-30 06:38:01.423 GMT 31 INFO 101302 Orleans.Messaging.Gateway 127.0.0.1:22222] Recorded closed socket from endpoint 127.0.0.1:61310, client ID *cli/a93ad6bf.
Note the exception is at the end of the server log.
I got many "Assembly does not contain any acceptable grain types." and "user assembly ignored, and I wonder if that could cause my problem (or something from the client side). Let me know if I need to provide more information.
I'm trying to test out a version of [https://github.com/dotnet/orleans/tree/master/Samples/HelloWorld](Standalone server/client hello world example) and I'm getting an error "Exc level 0: System.Runtime.Serialization.SerializationException: Attempt to read past the end of the input stream: CurrentPosition=12, n=4, totalLength=14" on the server side. I'm seeing the similar issue #581 but I wasn't be able to solve my problem. I'm attaching the details below:
Project structure:
Grain interface:
Grain:
Program from the client side:
program from the server side:
These examples are pretty much unmodified from the Sample folder.
packages.config from the client:
packages.config from the server:
Finally there are logs:
client log:
server log:
Note the exception is at the end of the server log. I got many "Assembly does not contain any acceptable grain types." and "user assembly ignored, and I wonder if that could cause my problem (or something from the client side). Let me know if I need to provide more information.