Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zhouweiaccp opened this issue Sep 12, 2017 · 10 comments
Milestone

Comments

@zhouweiaccp
Copy link

[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);
}

@sergeybykov
Copy link
Contributor

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

@sergeybykov sergeybykov added this to the Triage milestone Sep 12, 2017
@zhouweiaccp
Copy link
Author

sure

@zhouweiaccp
Copy link
Author

What version of the net core production environment?

@xiazen
Copy link
Contributor

xiazen commented Sep 13, 2017

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
Copy link
Contributor

xiazen commented Sep 13, 2017

which version of Orleans are u using?

@zhouweiaccp
Copy link
Author

Orleans 1.5.1

@xiazen
Copy link
Contributor

xiazen commented Sep 13, 2017

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

@zhouweiaccp
Copy link
Author

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

@jdom
Copy link
Member

jdom commented Sep 15, 2017

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

@zhouweiaccp
Copy link
Author

thankyou

@ghost ghost locked as resolved and limited conversation to collaborators Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants