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

Getting error Could not load file or assembly #19

Open
Shubbi opened this issue Aug 28, 2019 · 3 comments
Open

Getting error Could not load file or assembly #19

Shubbi opened this issue Aug 28, 2019 · 3 comments

Comments

@Shubbi
Copy link

Shubbi commented Aug 28, 2019

InnerException {"Could not load file or assembly 'System.Configuration.Abstractions.NetStandard, Version=2.0.2.45, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"System.Configuration.Abstractions.NetStandard, Version=2.0.2.45, Culture=neutral, PublicKeyToken=null"} System.Exception {System.IO.FileNotFoundException}

Tried adding



It doesn't work

Why is the PublicKeyToken null?

@Shubbi
Copy link
Author

Shubbi commented Aug 28, 2019

Tried adding
< dependentAssembly>
< assemblyIdentity name="System.Configuration.Abstractions.NetStandard" culture="neutral" publicKeyToken="null"/>
< bindingRedirect oldVersion="0.0.0.0-2.0.2.45" newVersion="2.0.2.45" />
< /dependentAssembly>
doesn't work

@YasirSyed
Copy link

I am getting this issue too. I am injecting the dependency like this:
services.AddSingleton<IConfigurationManager, ConfigurationManager>();

And then calling a class that depends upon the IConfigurationManager.

But I get the error that Shubbi is mentioning.

@davidwhitney
Copy link
Owner

Hey folks - can you provide more information on the runtime versions you're using (or a small repro) and I'll dig through all of this.

Looks like they're both netcore issues above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants