dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.14k stars 2.04k forks source link

.NetCore2.0 Runtime Codegen fail in Orleans TechPreview3 (reopen issues #3404) #3412

Closed bluexo closed 7 years ago

bluexo commented 7 years ago

When I build a .net core 2.0 application with Orleans , I already add reference Orleans.OrleanCodeGenerator to my Client and Server , but the orleans silo server not load the grains dll , and occur this error :

Unhandled Exception: System.ArgumentException: Cannot find an implementation class for grain interface: Orleans.Interface.IPlayerGrain. Make sure the grain assembly was correctly deployed and loaded in the silo.
   at Orleans.GrainFactory.GetGrainClassData(Type interfaceType, String grainClassNamePrefix)
   at Orleans.GrainFactory.GetGrain[TGrainInterface](Int64 primaryKey, String grainClassNamePrefix)
   at Orleans.Client.Program.Main(String[] args) in C:\Users\Administrator\Documents\visual studio 2017\Projects\OrleansCore\Orleans.Client\Program.cs:line 14

thats my code :

Interface :

    public interface IPlayerGrain : IGrainWithIntegerKey
    {
        Task SayHello(string content);
    }

Grain :

    public class PlayerGrain : Orleans.Grain  , IPlayerGrain
    {
        public Task SayHello(string content)
        {
            Console.WriteLine($"Say {content} to {this.GetPrimaryKeyLong()}");
            return Task.CompletedTask;
        }
    }

Client :

    var config = ClientConfiguration.LocalhostSilo();
    GrainClient.Initialize(config);
    var player = GrainClient.GrainFactory.GetGrain<IPlayerGrain>(1000);
    player.SayHello("Hi!!!");
    Console.WriteLine("Press any key to terminate!");
    Console.ReadKey();

Server:

    var config = ClusterConfiguration.LocalhostPrimarySilo();
    var siloHost = new SiloHost("Orleans",config);
    siloHost.InitializeOrleansSilo();
    siloHost.StartOrleansSilo(true);
    Console.WriteLine("Press any key to terminate!");
    Console.ReadKey();

In issues #3404 , I made a mistake that the PlayerGrain have not inherit Orleans.Grain class , then I fixed it , but the the problem still occurs . Has another one has this issues ? @ReubenBond @Cherrs 我不知道该怎么联系你,希望你能看到 ,你的 测试用例,我用VS2017运行之后还是出现这个问题

Client build directory:

 C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Debug\netcoreapp2.0 的目录

2017/09/14  23:43    <DIR>          .
2017/09/14  23:43    <DIR>          ..
2017/09/14  23:43                 0 Client-2017-09-14-15.43.20.901Z.log
2017/09/18  11:57           103,172 Orleans.Client.deps.json
2017/09/18  23:54             5,120 Orleans.Client.dll
2017/09/18  23:54               628 Orleans.Client.pdb
2017/09/18  11:57               252 Orleans.Client.runtimeconfig.dev.json
2017/09/18  11:57               154 Orleans.Client.runtimeconfig.json
2017/09/18  23:54             4,096 Orleans.Interface.dll
2017/09/18  23:54               252 Orleans.Interface.pdb
               8 个文件        113,674 字节
               2 个目录 76,443,254,784 可用字节

Server build directory:

 C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Server\bin\Debug\netcoreapp2.0 的目录

2017/09/14  23:42    <DIR>          .
2017/09/14  23:42    <DIR>          ..
2017/09/14  23:49            32,461 Orleans-2017-09-14-15.42.43.444Z.log
2017/09/18  23:54             4,608 Orleans.Grain.dll
2017/09/18  23:54               576 Orleans.Grain.pdb
2017/09/18  23:54             4,096 Orleans.Interface.dll
2017/09/18  23:54               252 Orleans.Interface.pdb
2017/09/18  11:57            95,010 Orleans.Server.deps.json
2017/09/18  23:54             5,120 Orleans.Server.dll
2017/09/18  23:54               632 Orleans.Server.pdb
2017/09/18  11:57               252 Orleans.Server.runtimeconfig.dev.json
2017/09/18  11:57               154 Orleans.Server.runtimeconfig.json
              10 个文件        143,161 字节
               2 个目录 76,443,447,296 可用字节
sergeybykov commented 7 years ago

It sounds as if you didn't deploy your grain assembly with the silo. Is it actually in the folder?

bluexo commented 7 years ago

@sergeybykov This is the build directory :

 C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Server\bin\Debug\netcoreapp2.0 的目录

2017/09/14  23:42    <DIR>          .
2017/09/14  23:42    <DIR>          ..
2017/09/14  23:49            32,461 Orleans-2017-09-14-15.42.43.444Z.log
2017/09/18  23:54             4,608 Orleans.Grain.dll
2017/09/18  23:54               576 Orleans.Grain.pdb
2017/09/18  23:54             4,096 Orleans.Interface.dll
2017/09/18  23:54               252 Orleans.Interface.pdb
2017/09/18  11:57            95,010 Orleans.Server.deps.json
2017/09/18  23:54             5,120 Orleans.Server.dll
2017/09/18  23:54               632 Orleans.Server.pdb
2017/09/18  11:57               252 Orleans.Server.runtimeconfig.dev.json
2017/09/18  11:57               154 Orleans.Server.runtimeconfig.json
              10 个文件        143,161 字节
               2 个目录 76,443,447,296 可用字节

Is this missing some files ?

sergeybykov commented 7 years ago

This looks good (Orleans.Grain.dll is there). However, is that also the content of the folder where the silo starts from?

bluexo commented 7 years ago

@sergeybykov Yes , it is . I use Visual Studio 2017 build an run it , I also use dotnet run it, but the problem still occurs !

larsfjerm commented 7 years ago

Yes, I have the same issue as described in #3404 (why did you close it?) The silo throws: Cannot find an implementation class for grain interface... - However, the grain implementation is referenced in my solution.

bluexo commented 7 years ago

@larsfjerm I'm sorry , that was my mistake ,At that time , I think if the PlayerGrain inherit Orleans.Grain class , that will be resolve it! But it wasn't .

bluexo commented 7 years ago

@sergeybykov that's my project OrleansCore

sergeybykov commented 7 years ago

With TP3 you have to publish the Server and Client projects, and then run them from those folders with dotnet Orleans.Server.dll and dotnet Orleans.Client.dll respectively. It's a known current limitation mentioned at the bottom of https://blogs.msdn.microsoft.com/orleans/2017/09/13/announcing-orleans-2-0-tech-preview-3/.

When I did that, your solution worked.

bluexo commented 7 years ago

@sergeybykov
I publish client and server to folders , but the problem still occurs !

this is the client folder :

C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Release\PublishOutput>dir
 驱动器 C 中的卷是 Windows 10
 卷的序列号是 4445-F4E7

 C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Release\PublishOutput 的目 录

2017/09/19  02:08    <DIR>          .
2017/09/19  02:08    <DIR>          ..
2017/09/14  23:51            16,384 Client-2017-09-14-15.51.12.211Z.log
2017/09/19  02:08            16,384 Client-2017-09-18-18.08.32.996Z.log
2017/09/19  01:24    <DIR>          de
2017/09/19  01:24    <DIR>          es
2017/09/19  01:24    <DIR>          fr
2017/09/19  01:24    <DIR>          it
2017/09/19  01:24    <DIR>          ja
2017/09/19  01:24    <DIR>          ko
2017/08/05  09:35         4,452,264 Microsoft.CodeAnalysis.CSharp.dll
2017/08/05  09:35         2,003,352 Microsoft.CodeAnalysis.dll
2017/08/05  09:35           678,624 Microsoft.Data.Edm.dll
2017/08/05  09:35         1,543,904 Microsoft.Data.OData.dll
2017/07/25  00:48            19,976 Microsoft.Extensions.Configuration.Abstractions.dll
2017/07/25  00:48            24,072 Microsoft.Extensions.Configuration.Binder.dll
2017/07/25  00:48            24,584 Microsoft.Extensions.Configuration.dll
2017/07/25  00:48            36,360 Microsoft.Extensions.DependencyInjection.Abstractions.dll
2017/07/25  00:48            44,552 Microsoft.Extensions.DependencyInjection.dll
2017/07/25  00:48            16,904 Microsoft.Extensions.Options.ConfigurationExtensions.dll
2017/07/25  00:48            26,120 Microsoft.Extensions.Options.dll
2017/07/25  00:48            33,288 Microsoft.Extensions.Primitives.dll
2017/09/13  02:58            13,840 Microsoft.Orleans.Core.Abstractions.dll
2017/07/25  11:07           833,160 Microsoft.WindowsAzure.Storage.dll
2017/06/18  13:57           639,488 Newtonsoft.Json.dll
2017/09/19  02:06           103,172 Orleans.Client.deps.json
2017/09/19  02:06             5,120 Orleans.Client.dll
2017/09/19  02:06               564 Orleans.Client.pdb
2017/09/19  02:06               154 Orleans.Client.runtimeconfig.json
2017/09/13  02:57         1,164,304 Orleans.dll
2017/09/18  23:54             4,096 Orleans.Interface.dll
2017/09/18  23:54               252 Orleans.Interface.pdb
2017/09/13  02:57           288,784 OrleansAzureUtils.dll
2017/09/13  02:57            72,200 OrleansCodeGenerator.dll
2017/09/13  02:57           205,320 OrleansProviders.dll
2017/09/13  02:57           850,960 OrleansRuntime.dll
2017/09/19  01:24    <DIR>          ru
2017/09/19  01:24    <DIR>          runtimes
2017/07/19  10:01            21,944 System.Runtime.CompilerServices.Unsafe.dll
2017/08/05  09:35           134,880 System.Spatial.dll
2016/11/05  04:57           118,680 System.Xml.XPath.XmlDocument.dll
2017/09/19  01:24    <DIR>          zh-Hans
2017/09/19  01:24    <DIR>          zh-Hant
              31 个文件     13,393,686 字节
              12 个目录 76,023,189,504 可用字节

And server published folder:

C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Server\bin\Release\PublishOutput>dir
 驱动器 C 中的卷是 Windows 10
 卷的序列号是 4445-F4E7

 C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Server\bin\Release\PublishOutput 的目录

2017/09/19  02:07    <DIR>          .
2017/09/19  02:07    <DIR>          ..
2017/08/05  09:35         4,452,264 Microsoft.CodeAnalysis.CSharp.dll
2017/08/05  09:35         2,003,352 Microsoft.CodeAnalysis.dll
2017/07/25  00:48            19,976 Microsoft.Extensions.Configuration.Abstractions.dll
2017/07/25  00:48            24,072 Microsoft.Extensions.Configuration.Binder.dll
2017/07/25  00:48            24,584 Microsoft.Extensions.Configuration.dll
2017/07/25  00:48            36,360 Microsoft.Extensions.DependencyInjection.Abstractions.dll
2017/07/25  00:48            44,552 Microsoft.Extensions.DependencyInjection.dll
2017/07/25  00:48            46,600 Microsoft.Extensions.Logging.Abstractions.dll
2017/07/25  00:48            30,728 Microsoft.Extensions.Logging.dll
2017/07/25  00:48            16,904 Microsoft.Extensions.Options.ConfigurationExtensions.dll
2017/07/25  00:48            26,120 Microsoft.Extensions.Options.dll
2017/07/25  00:48            33,288 Microsoft.Extensions.Primitives.dll
2017/09/13  02:58            13,840 Microsoft.Orleans.Core.Abstractions.dll
2017/09/13  02:58            26,128 Microsoft.Orleans.Logging.Legacy.dll
2017/06/18  13:57           639,488 Newtonsoft.Json.dll
2017/09/14  23:52            29,241 Orleans-2017-09-14-15.50.22.911Z.log
2017/09/19  02:11            53,909 Orleans-2017-09-18-18.07.48.527Z.log
2017/09/13  02:57         1,164,304 Orleans.dll
2017/09/14  23:13             4,608 Orleans.Grain.dll
2017/09/14  23:13               576 Orleans.Grain.pdb
2017/09/14  23:13             4,096 Orleans.Interface.dll
2017/09/14  23:13               252 Orleans.Interface.pdb
2017/09/14  23:49            95,010 Orleans.Server.deps.json
2017/09/14  23:49             5,120 Orleans.Server.dll
2017/09/14  23:49               576 Orleans.Server.pdb
2017/09/14  23:49               154 Orleans.Server.runtimeconfig.json
2017/09/13  02:57            72,200 OrleansCodeGenerator.dll
2017/09/13  02:57           205,320 OrleansProviders.dll
2017/09/13  02:57           850,960 OrleansRuntime.dll
2017/09/19  01:24    <DIR>          runtimes
2017/07/19  10:01            21,944 System.Runtime.CompilerServices.Unsafe.dll
2016/11/05  04:57           118,680 System.Xml.XPath.XmlDocument.dll
              31 个文件     10,065,206 字节
               3 个目录 76,021,923,840 可用字节
clementguillot commented 7 years ago

Worked, thank you! Only the server needs to be started manually, clients can be started from VS.

sergeybykov commented 7 years ago

@bluexo Did you start server with dotnet Orleans.Server.dll from that folder?

@nhx

Only the server needs to be started manually, clients can be started from VS.

True. Good point.

bluexo commented 7 years ago

@sergeybykov Yes , I do . this is my publish output

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
1>------ Build started: Project: Orleans.Client, Configuration: Debug Any CPU ------
1>Orleans.Client -> C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Debug\netcoreapp2.0\Orleans.Client.dll
2>------ Publish started: Project: Orleans.Client, Configuration: Debug Any CPU ------
2>D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705,1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETCOREAPP2_0 /errorendlocation /preferreduilang:en-US /reference:C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.csharp\2.0.0\lib\netstandard1.3\Microsoft.CodeAnalysis.CSharp.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.common\2.0.0\lib\netstandard1.3\Microsoft.CodeAnalysis.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.CSharp.dll" /reference:C:\Users\Administrator\.nuget\packages\microsoft.data.edm\5.8.2\lib\netstandard1.1\Microsoft.Data.Edm.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.data.odata\5.8.2\lib\netstandard1.1\Microsoft.Data.OData.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.configuration.abstractions\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.configuration.binder\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.configuration\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\2.0.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.dependencyinjection\2.0.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.options.configurationextensions\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Options.ConfigurationExtensions.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.options\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Options.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.extensions.primitives\2.0.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.core.abstractions\2.0.0-preview3-20170913\lib\netstandard1.3\Microsoft.Orleans.Core.Abstractions.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.VisualBasic.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\Microsoft.Win32.Primitives.dll" /reference:C:\Users\Administrator\.nuget\packages\windowsazure.storage\8.2.1\lib\netstandard1.3\Microsoft.WindowsAzure.Storage.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\mscorlib.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\netstandard.dll" /reference:C:\Users\Administrator\.nuget\packages\newtonsoft.json\10.0.3\lib\netstandard1.3\Newtonsoft.Json.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.core\2.0.0-preview3-20170913\lib\netstandard2.0\Orleans.dll /reference:"C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Interface\bin\Debug\netstandard2.0\Orleans.Interface.dll" /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.orleansazureutils\2.0.0-preview3-20170913\lib\netstandard2.0\OrleansAzureUtils.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.orleanscodegenerator\2.0.0-preview3-20170913\lib\netstandard2.0\OrleansCodeGenerator.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.orleansproviders\2.0.0-preview3-20170913\lib\netstandard2.0\OrleansProviders.dll /reference:C:\Users\Administrator\.nuget\packages\microsoft.orleans.orleansruntime\2.0.0-preview3-20170913\lib\netstandard2.0\OrleansRuntime.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.AppContext.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Buffers.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Concurrent.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Immutable.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.NonGeneric.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Collections.Specialized.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Annotations.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Composition.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.EventBasedAsync.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ComponentModel.TypeConverter.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Configuration.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Console.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Core.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.Common.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Data.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Contracts.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Debug.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.DiagnosticSource.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.FileVersionInfo.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Process.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.StackTrace.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TextWriterTraceListener.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tools.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.TraceSource.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Diagnostics.Tracing.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Drawing.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Dynamic.Runtime.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Calendars.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Globalization.Extensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.FileSystem.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Compression.ZipFile.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.DriveInfo.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.FileSystem.Watcher.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.IsolatedStorage.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.MemoryMappedFiles.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.Pipes.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.IO.UnmanagedMemoryStream.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Expressions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Parallel.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Linq.Queryable.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Http.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.HttpListener.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Mail.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NameResolution.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.NetworkInformation.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Ping.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Requests.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Security.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.ServicePoint.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.Sockets.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebClient.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebHeaderCollection.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebProxy.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.Client.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Net.WebSockets.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Numerics.Vectors.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ObjectModel.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.DispatchProxy.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.ILGeneration.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Emit.Lightweight.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Extensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Metadata.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Reflection.TypeExtensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Reader.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.ResourceManager.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Resources.Writer.dll" /reference:C:\Users\Administrator\.nuget\packages\system.runtime.compilerservices.unsafe\4.4.0\ref\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.CompilerServices.VisualC.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Extensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Handles.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.RuntimeInformation.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.InteropServices.WindowsRuntime.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Loader.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Numerics.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Formatters.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Json.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Runtime.Serialization.Xml.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Claims.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Algorithms.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Csp.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Encoding.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.Primitives.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Cryptography.X509Certificates.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.Principal.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Security.SecureString.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceModel.Web.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ServiceProcess.dll" /reference:C:\Users\Administrator\.nuget\packages\system.spatial\5.8.2\lib\netstandard1.1\System.Spatial.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.Encoding.Extensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Text.RegularExpressions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Overlapped.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Dataflow.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Extensions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Tasks.Parallel.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Thread.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.ThreadPool.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Threading.Timer.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Transactions.Local.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.ValueTuple.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Web.HttpUtility.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Windows.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Linq.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.ReaderWriter.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.Serialization.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XDocument.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlDocument.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XmlSerializer.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.dll" /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Xml.XPath.XDocument.dll" /reference:C:\Users\Administrator\.nuget\packages\system.xml.xpath.xmldocument\4.3.0\ref\netstandard1.3\System.Xml.XPath.XmlDocument.dll /reference:"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\WindowsBase.dll" /debug- /debug:portable /filealign:512 /nologo /optimize+ /out:obj\Release\netcoreapp2.0\Orleans.Client.dll /ruleset:"D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /target:exe /warnaserror- /utf8output /deterministic+ /analyzer:C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.analyzers\1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll /analyzer:C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.analyzers\1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll Program.cs "C:\Users\Administrator\AppData\Local\Temp\.NETCoreApp,Version=v2.0.AssemblyAttributes.cs" obj\Release\netcoreapp2.0\Orleans.Client.AssemblyInfo.cs /warnaserror+:NU1605
2>Orleans.Client -> C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Release\netcoreapp2.0\Orleans.Client.dll
2>Orleans.Client -> C:\Users\Administrator\Documents\Visual Studio 2017\Projects\OrleansCore\Orleans.Client\bin\Release\PublishOutput\
2>Orleans.Client was published successfully to bin\Release\PublishOutput
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
sergeybykov commented 7 years ago

@bluexo Did you also publish the Server project and run it with dotnet Orleans.Server.dll from Orleans.Server\bin\Release\PublishOutput\?

bluexo commented 7 years ago

@sergeybykov I publish client and server and run it with dotnet from PublishOutput folder , and this is ScreenShot

sergeybykov commented 7 years ago

That's weird. I'm running your code via dotnet Orleans.Server.dll without any modifications and am seeing the following in the silo output:

[2017-09-18 19:25:29.992 GMT 2 INFO 101711 AssemblyLoader.Silo 127.0.0.1:22222] Loaded grain type summary for 8 types: Grain class Orleans.Grains.Orleans.Grains.PlayerGrain [428134240 (0x1984CF60)] from Orleans.Grain.dll implementing interfaces: Orleans.Interface.Orleans.Interface.IPlayerGrain [473623515 (0x1C3AEBDB)] 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.Runtime.Versions.Orleans.Runtime.Versions.VersionStoreGrain [331003096 (0x13BAB4D8)] from OrleansRuntime.dll implementing interfaces: Orleans.Runtime.Versions.Orleans.Runtime.Versions.IVersionStoreGrain [-297600501 (0xEE42FA0B)], Orleans.Orleans.IGrainWithStringKey [-1277021679 (0xB3E23211)] 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)]

Is that not what you are seeing in the silo log?

bluexo commented 7 years ago

@sergeybykov It's worked for me , when I upgrade the Visual Studio 2017 from 15.3.2 to 15.3.4 . 😄

Cherrs commented 7 years ago

好奇怪啊,我试着重现你这个问题。但怎么也无法重现 PS C:\Users\dell\Desktop> dotnet --info .NET 命令行工具 (2.0.0)

Product Information: Version: 2.0.0 Commit SHA-1 hash: cdcd1928c9

Runtime Environment: OS Name: Windows OS Version: 10.0.15063 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0 Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d VS的版本是15.3.3。 publish之后运行是没有问题的。 这跟vs应该没什么关系,你之前用的.net core是哪个版本?github下载的还是官网

bluexo commented 7 years ago

@Cherrs 确实比较诡异 ,我的截图里面有个编译的问题(红色的那行字),我看不太懂 . 我用的是 .net core 2.0