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

Microsoft.Extensions.Logging.Abstractions not found on latest beta version upgrade #3511

Closed
mieliespoor opened this issue Sep 22, 2018 · 10 comments

Comments

@mieliespoor
Copy link

mieliespoor commented Sep 22, 2018

I am trying to upgrade my function app to the latest beta version available but face the following exception:

If the Microsoft.Extensions.Logging.Abstractions 2.1.1 package is not installed:
System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'

If the Microsoft.Extensions.Logging.Abstractions package is not installed:
System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'

I have tried to following options:

  • Not have the package reference
  • Install version 2.1.0
  • Install version 2.1.1
  • Install version 2.2.0-preview1-35029
  • Install version 2.2.0-preview2-35157

With every version I tried to install I get the error mentioned with the only difference the version number changes to the installed version of the package.

  • Function App version: 2.0
  • Function App name: Oneref-Functions
  • Region: North Europe

I started the discussion in this thread: Azure/app-service-announcements-discussions#64 (comment)

@codingdiva
Copy link

I have encountered this same issue. Have you found a resolution yet?

@mieliespoor
Copy link
Author

@codingdiva No I haven't been able to resolve the issue. Doesn't matter what version I reference, I get this issue so at this point I am blocked which is highly annoying as there are some update that I want to push out.

@tdjastrzebski
Copy link

Same problem here after when I tried to use ILogger in Azure Functions.

@PureKrome
Copy link

I'm also shocked that ILogger isn't part of File->New->Azure Function ... replacing TraceWriter or whatever the default was/is.

It should be part of the new, shiny things, now what Functions are all .NET Core, etc...

@mieliespoor
Copy link
Author

I don't see this anymore with the latest bit, but I think one thing to make sure of is to double check that you are using the latest cli. I'm still on a very old cli version and have issues getting that updated, but that might be the issue with this also - having an old cli version.

@PureKrome
Copy link

@mieliespoor when you say "double check that you are using the latest cli" can you please confirm what that exact tool is, please? (screen shot?)

@mieliespoor
Copy link
Author

@PureKrome when you run your function app through Visual Studio, you will see a message, in the console, similar to:
[9/19/2018 6:12:53 PM] Starting Host (HostId=xxx, InstanceId=xxx, Version=2.0.12161.0)
That will indicate the functions cli version.

@PureKrome
Copy link

Starting Host (...., Version=2.0.11651.0, ....)

Ok, so i've got a version that's older than yours. So how do I update the CLI please?

@mieliespoor
Copy link
Author

Have a look at #3759 . I'm also on that same version and Visual Studio don't seems to update the cli to the latest version.

@mieliespoor
Copy link
Author

I'm closing this in favour of #3759

@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2020
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