orleans icon indicating copy to clipboard operation
orleans copied to clipboard

System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()

Open zhouweiaccp opened this issue 9 years ago • 10 comments

[2017-09-12 08:44:36.510 GMT 2 INFO 100404 Silo 127.0.0.1:22222] Silo starting with GC settings: ServerGC=False GCLatencyMode=Interactive [2017-09-12 08:44:37.216 GMT 2 WARNING 100405 Silo 127.0.0.1:22222] Note: Silo not running with ServerGC turned on or with GCLatencyMode.Batch enabled - recommend checking app config : -- and -- [2017-09-12 08:44:37.221 GMT 2 WARNING 100405 Silo 127.0.0.1:22222] Note: ServerGC only kicks in on multi-core systems (settings enabling ServerGC have no effect on single-core machines). [2017-09-12 08:44:37.226 GMT 2 INFO 100403 Silo 127.0.0.1:22222] -------------- Initializing Primary silo on host chive-PC MachineName CHIVE-PC at 127.0.0.1:22222, gen 242901875 -------------- [2017-09-12 08:44:37.309 GMT 2 ERROR 100105 OrleansSiloHost 127.0.0.1:22222] !!!!!!!!!! ERROR starting Orleans silo name=chive-PC Exception= Exc level 0: System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'. at Orleans.Runtime.Configuration.ConfigUtilities.RuntimeVersionInfo() at Orleans.Runtime.Configuration.ClusterConfiguration.ToString(String siloName) at Orleans.Runtime.Silo..ctor(SiloInitializationParameters initializationParams) at Orleans.Runtime.Silo..ctor(String name, SiloType siloType, ClusterConfiguration config) at Orleans.Runtime.Host.SiloHost.InitializeOrleansSilo() Exc level 0: System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'. at Orleans.Runtime.Configuration.ConfigUtilities.RuntimeVersionInfo() at Orleans.Runtime.Configuration.ClusterConfiguration.ToString(String siloName) at Orleans.Runtime.Silo..ctor(SiloInitializationParameters initializationParams) at Orleans.Runtime.Silo..ctor(String name, SiloType siloType, ClusterConfiguration config)

follow config

Exe netcoreapp2.0 Always PreserveNewest

code: public 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) { var config = ClusterConfiguration.LocalhostPrimarySilo(); config.LoadFromFile("OrleansConfiguration.xml"); //config.AddMemoryStorageProvider(); hostWrapper = new OrleansHostWrapper(config, args); }

zhouweiaccp avatar Sep 12 '17 09:09 zhouweiaccp

Are you trying to run 1.5.0/1.5.1 on .NET Core?

sergeybykov avatar Sep 12 '17 16:09 sergeybykov

sure

zhouweiaccp avatar Sep 13 '17 00:09 zhouweiaccp

What version of the net core production environment?

zhouweiaccp avatar Sep 13 '17 01:09 zhouweiaccp

we have a 2.0 preview which is netcore compatible. But I wouldn't say it is production ready. Our upcoming official 2.0 will be.

Are you trying to run Orleans app on net core?

xiazen avatar Sep 13 '17 01:09 xiazen

which version of Orleans are u using?

xiazen avatar Sep 13 '17 01:09 xiazen

Orleans 1.5.1

zhouweiaccp avatar Sep 13 '17 01:09 zhouweiaccp

are u trying to run it on Net Core? if yes, then that explains the exception, since 1.5 is not net core compatible

xiazen avatar Sep 13 '17 02:09 xiazen

Orleans.Runtime.Configuration.ConfigUtilities ----[class] public static string RuntimeVersionInfo(){ } resson: look up content

zhouweiaccp avatar Sep 13 '17 03:09 zhouweiaccp

If you are running on .NET Core, then your option is to try the pre-release version of Orleans 2.0 TP3 available in this feed: https://dotnet.myget.org/gallery/orleans-prerelease

jdom avatar Sep 15 '17 21:09 jdom

thankyou

zhouweiaccp avatar Sep 22 '17 05:09 zhouweiaccp