Skip to content

BuildWebHost Errs on Internal IDictionary #3161

Closed
@livarcocc

Description

@livarcocc

From @rchrismon on May 11, 2018 5:51

Not sure where to post this, perhaps you can tell me.

Core 2.1 Web MVC App, Program.cs is stock out of the box. When I debug the app, it errs at

public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>() .Build();
The error is:

Method not found: 'System.Collections.IDictionary Internal.Runtime.Augments.EnvironmentAugments.GetEnvironmentVariables()'.

FWIW, poking into the error details, I saw many errors around System.Reflection. One in particular caught my eye.

((System.Reflection.RuntimeAssembly)((System.RuntimeType)((System.RuntimeType)((System.Reflection.RuntimeMethodInfo)($exception).TargetSite).DeclaringType).BaseType).Assembly).CodeBase

Any insight, or a better place to ask, I'd greatly appreciate.

Thanks,
Randy Chrismon

Copied from original issue: dotnet/sdk#2236

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions