You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using azure function app version 4, with .NET 8 in process mode, functions SDK version is 4.4.0.
One of the dependencies of my project is Microsoft.AspNet.WebApi.Client Version 6.0.0 (which includes the dll for System.Net.Http.Formatting (also in version 6.0.0)
When I try to run the function locally/deploy it, I get the same error -
Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. System.Private.CoreLib: Unable to load one or more of the requested types. Could not load file or assembly 'System.Net.Http.Formatting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. Could not load file or assembly 'System.Net.Http.Formatting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
The dll of version 6.0.0 is in the function app - verified through Kudu, and by downloading the site content.
I think that our app first loads the azure-functions-core-tools dll with version 5.2.8, and by the time we try to load the correct dll with version 6.0.0 it fails because there was already an assembly with the same name loaded.
I think the fix here could be a new version of the tool with a bump to Microsoft.AspNet.WebApi.Client to version 6.0.0
Steps to reproduce
create a .net project
make Microsoft.AspNet.WebApi.Client Version 6.0.0 a dependency
upload project to an azure function (azure function version 4, in process mode, functions sdk version is 4.4.0)
The text was updated successfully, but these errors were encountered:
Version
4.0.6280 (latest, at the time of writing)
Description
I am using azure function app version 4, with .NET 8 in process mode, functions SDK version is 4.4.0.
One of the dependencies of my project is
Microsoft.AspNet.WebApi.Client Version 6.0.0
(which includes the dll forSystem.Net.Http.Formatting
(also in version 6.0.0)When I try to run the function locally/deploy it, I get the same error -
Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. System.Private.CoreLib: Unable to load one or more of the requested types. Could not load file or assembly 'System.Net.Http.Formatting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. Could not load file or assembly 'System.Net.Http.Formatting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
The dll of version 6.0.0 is in the function app - verified through Kudu, and by downloading the site content.
I think that our app first loads the
azure-functions-core-tools
dll with version 5.2.8, and by the time we try to load the correct dll with version 6.0.0 it fails because there was already an assembly with the same name loaded.I think the fix here could be a new version of the tool with a bump to
Microsoft.AspNet.WebApi.Client
to version 6.0.0Steps to reproduce
Microsoft.AspNet.WebApi.Client Version 6.0.0
a dependencyThe text was updated successfully, but these errors were encountered: