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

SDK 4.1.3 and Microsoft.Azure.WebJobs.Extensions.Http 3.2 breaks #589

Open
tbasallo opened this issue Oct 1, 2022 · 16 comments
Open

SDK 4.1.3 and Microsoft.Azure.WebJobs.Extensions.Http 3.2 breaks #589

tbasallo opened this issue Oct 1, 2022 · 16 comments
Assignees

Comments

@tbasallo
Copy link

tbasallo commented Oct 1, 2022

Updating the Microsoft.NET.Sdk.Functions to 4.1.3 and uipdating Microsoft.Azure.WebJobs.Extensions.Http to which is requieed, causes for the runtime (locally) to not find it and error with "Could not load file or assembly Microsoft.Azure.WebJobs.Extensions.Http 3.2.0"

Downgrading to 4.1.1 and Http 3.0.12 works.

@JonasJes
Copy link

JonasJes commented Oct 3, 2022

I have the same problem, got it solved locally by updating Azure Functions Core Tools
But is was still failing while running in docker, so I also had to downgrade to 4.1.1 to get it running there as well.

Same problem in reported to stackoverflow 2 months ago

Could this be the root cause for this error? #695

@ramya894
Copy link

ramya894 commented Oct 6, 2022

@JonasJes We will check this issue with our next level team and update you.

@kshyju
Copy link
Member

kshyju commented Oct 11, 2022

@tbasallo What is the core tools/host version you have? Is that the latest?

@tbasallo
Copy link
Author

@kshyju yes. the latest (AFAIK). I also installed them separate from VS.

Azure Functions Core Tools
Core Tools Version: 4.0.4785 Commit hash: N/A (64-bit)
Function Runtime Version: 4.10.4.19213

@kshyju
Copy link
Member

kshyju commented Oct 13, 2022

@tbasallo I could not repro this when I created a new in-proc dotnet 6 http function app. I upgraded my Microsoft.NET.Sdk.Functions package to 4.1.3 and Microsoft.Azure.WebJobs.Extensions.Http is 3.2.0, did F5 debugging on Visual studio and can see everything working as expected.

I am using VS 2022 17.3.6, which is the latest stable as of today. Do you see the same core tools version numbers when you do F5 on Visual studio? Or are you running the app in another way?

image

@JonasJes
Copy link

@kshyju Have you tried Dockerizing it and then running it?

@kshyju
Copy link
Member

kshyju commented Oct 17, 2022

@kshyju Have you tried Dockerizing it and then running it?

Yes, I do not see any issues with running it in docker. If you are experiencing issues, please open a new issue so we can discuss the details there. Thanks!

@lgp1985
Copy link

lgp1985 commented Oct 19, 2022

If I create an Azure Function project, and then run as is, it'll work, but if I go to Mange NuGet Packages and update to latest version available it'll fail to run, without any code changes, what am I missing here?

You can see all my steps on attached video.

Cloud.PC.Enterprise.4vCPU_16GB_512GB.2022-10-19.11-02-48_Trim.mp4

@kshyju
Copy link
Member

kshyju commented Oct 19, 2022

@lgp1985 Can you change the package source to "nuget.org" when upgrading the package to 4.1.3 and see what happens?

@lgp1985
Copy link

lgp1985 commented Oct 19, 2022

Like this @kshyju ?

Cloud.PC.Enterprise.4vCPU_16GB_512GB.2022-10-19.15-16-09_Trim.mp4

@ghost ghost added the no recent activity label Oct 23, 2022
@ghost
Copy link

ghost commented Oct 23, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@kshyju
Copy link
Member

kshyju commented Oct 24, 2022

@lgp1985 Can you share a minimal repro with us? A Github repo will be great. Thanks!

@ghost ghost removed the no recent activity label Oct 24, 2022
@tbasallo
Copy link
Author

hmm...I've updated a few projects and haven't had any issues.

However, the tools did update:
Azure Functions Core Tools
Core Tools Version: 4.0.4829 Commit hash: N/A (64-bit)
Function Runtime Version: 4.11.2.19273

Maybe that's why which matches @kshyju

@lgp1985
Copy link

lgp1985 commented Oct 26, 2022

@lgp1985 Can you share a minimal repro with us? A Github repo will be great. Thanks!

Here's a repo https://github.com/lgp1985/defect-v4.1.3-azure-functions-vs-build-sdk with both failing and working projects under the same solution. Worth mentioning the issue is only reproducible in Windows 10, I provided some details on VS2022 and Windows version of an environment in which it works, and another that fails.

I can confirm other 3 developers have faced the same issue under Windows 10.

@KevinAble
Copy link

What fixed it for me was
Close Visual Studio
Delete folder C:\Users***\AppData\Local\AzureFunctionsTools
Restart Visual Studio.
Launch Application, folder gets recreate

taken from https://stackoverflow.com/questions/73645163/unable-to-upgrade-azure-functions-core-tools-exception-cannot-create-instance

@lgp1985
Copy link

lgp1985 commented Nov 1, 2022

Hi @KevinAble,
that had no difference on Windows 10 for me

Cloud.PC.Enterprise.4vCPU_16GB_512GB.2022-11-01.17-48-26.mp4

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

No branches or pull requests

6 participants