Nancy: 'Nancy.Bootstrapper.AppDomainAssemblyTypeScanner' threw System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'

Created on 4 Nov 2017  路  2Comments  路  Source: NancyFx/Nancy

Description

First steps with Nancy:

using System;
using Nancy.Hosting.Self;

namespace HelloNancy2
{
    class Program
    {
        static void Main(string[] args)
        {
            var url = "http://127.0.0.1:5000";
            using(var host = new NancyHost(new Uri(url)))
            {
                host.Start();
                Console.WriteLine("Nancy Server listening on {0}", url);
                Console.ReadLine();
            }
        }
    }
}

Steps to Reproduce

Compile and Run results in:

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Nancy.Bootstrapper.AppDomainAssemblyTypeScanner' threw an exception. ---> System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'.
at Nancy.Bootstrapper.AppDomainAssemblyTypeScanner.d__37.MoveNext()
at Nancy.Bootstrapper.AppDomainAssemblyTypeScanner.LoadAssembliesWithNancyReferences()
at Nancy.Bootstrapper.AppDomainAssemblyTypeScanner..cctor()
--- End of inner exception stack trace ---
at Nancy.Bootstrapper.AppDomainAssemblyTypeScanner.TypesOfTType
at Nancy.Bootstrapper.NancyBootstrapperLocator.GetBootstrapperType()
at Nancy.Bootstrapper.NancyBootstrapperLocator.LocateBootstrapper()
at Nancy.Bootstrapper.NancyBootstrapperLocator.get_Bootstrapper()
at Nancy.Hosting.Self.NancyHost..ctor(Uri[] baseUris)

System Configuration

  • Nancy version: 1.4.4
  • Nancy host

    • [X] Nancy.Hosting.Self 1.4.1

  • Other Nancy packages and versions:
  • Environment (Operating system, version and so on):

    • Ubuntu 16.10

  • .NET Framework version:

    • Microsoft.NETCore.App/2.0.0

    • Microsoft.NETCore.Platforms/2.0.0

    • NETStadard.Library/2.0.0

Most helpful comment

Nancy 1.x does not run on .NET Core you need to use 2.0-clienteastwood to run on Core

All 2 comments

Nancy 1.x does not run on .NET Core you need to use 2.0-clienteastwood to run on Core

@thecodejunkie Any roadmap to merge 2.0-clienteastwood to master?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thecodejunkie picture thecodejunkie  路  4Comments

jchannon picture jchannon  路  9Comments

jgillich picture jgillich  路  7Comments

Radzhab picture Radzhab  路  11Comments

Zaid-Ajaj picture Zaid-Ajaj  路  4Comments