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

Azure function throw exception #267

Open
rbhole opened this issue May 24, 2022 · 5 comments
Open

Azure function throw exception #267

rbhole opened this issue May 24, 2022 · 5 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@rbhole
Copy link

rbhole commented May 24, 2022

I created an function to auto calculate custom log hour from azure board task.
1 year before my company developer achieve successfully but after 1 years PAT expired and function working completely stopped. Now I again followed same step to execute it and I added new rule using new PAT. But while I changing log hours I got following exception in which I completely unaware of it.

2022-05-24 13:30:55.026
Executing 'Functions.AutoCal' (Reason='This function was programmatically called via the host APIs.', Id=4650-4f75-9324-5823890a50b7)
Information
2022-05-24 13:30:55.161
Error
2022-05-24 13:30:55.161
Function compilation error
Error
2022-05-24 13:30:55.225
run.csx(14,23): error CS1705: Assembly 'aggregator-function' with identity 'aggregator-function, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.Extensions.Logging.Abstractions' with identity 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.23.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
Error
2022-05-24 13:30:55.297
run.csx(15,27): error CS1705: Assembly 'aggregator-webshared' with identity 'aggregator-webshared, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.Extensions.Logging.Abstractions' with identity 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.23.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
Error
2022-05-24 13:30:55.297
run.csx(16,24): warning CS1701: Assuming assembly reference 'Microsoft.AspNetCore.Mvc.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' used by 'aggregator-function' matches identity 'Microsoft.AspNetCore.Mvc.Abstractions, Version=3.1.23.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' of 'Microsoft.AspNetCore.Mvc.Abstractions', you may need to supply runtime policy
Warning
2022-05-24 13:30:55.367
Script compilation failed.
Error
2022-05-24 13:30:55.367
Executed 'Functions.AutoCal' (Failed, Id=4650-4f75-9324-5823890a50b7, Duration=358ms)
Error
2022-05-24 13:30:55.371
Script compilation failed.
@rbhole rbhole added the bug Something isn't working label May 24, 2022
@giuliov
Copy link
Member

giuliov commented May 24, 2022

Hard to say what happened without details. You can manually check the version of files through Azure Portal.
App Service Editor
Aggregator files
You should be able to see the version used at creation time on the Tags of the Azure Function App
Tags displaying version
Finally we need to know the value of FUNCTIONS_EXTENSION_VERSION and the version of CLI you used.

@rbhole
Copy link
Author

rbhole commented May 25, 2022

@giuliov In aggregator overview section I have "aggregatorVersion: 1.1.0" and in aggregator-manifest I have "version=1.2.0".
I'm using dotnet version 3.1. Where I will get FUNCTIONS_EXTENSION_VERSION?

@giuliov
Copy link
Member

giuliov commented May 25, 2022

Sorry, here
function runtime version

@rbhole
Copy link
Author

rbhole commented May 26, 2022

FUNCTIONS_EXTENSION_VERSION = ~3 version.

@giuliov can you provide me what exact versions I need or guide me come out this exception?

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants