question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BuildWebHost Errs on Internal IDictionary

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rchrismoncommented, May 13, 2018

I forgot to mention, my teammates run from their branches without problem, but they can’t run my branch (same error). So, I’m guessing it has to be something in my code, or something in the additional dll packages I included with my build. I’m going to explore tomorrow what packages I have that they don’t, or vise versa.

Thanks! Randy

0reactions
livarcocccommented, May 21, 2018

This issue was moved to aspnet/Home#3161

Read more comments on GitHub >

github_iconTop Results From Across the Web

appsettings.json in ASP.net Core 2.0 Preview configuration ...
I first checked to see if there were any changes between 1.1.1 and 2.x of JsonConfigurationProvider.cs , the internal code that ultimately ...
Read more >
Updating to 3.0.1 for Microsoft.Extensions.Logging. ...
I have a .net core 3.0 Web Api application which is hosted on IIS. Recently when I am trying to update Microsoft.Extensions.Logging.
Read more >
Asp.net-mvc – How to add an implementation of ...
I am trying to run Add-Migration InitialCreate command from package manager console from a .NET Core 2.0 MVC application. After looking at all...
Read more >
An awesome guide on how to build RESTful APIs with ASP ...
by Evandro Gomes This article will serve as a step by step guide on how to implement clean, maintainable RESTful APIs.
Read more >
Every time I try to 'update-database' in the project manager ...
An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application ... See the inner exception for details.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found