Skip to content

.NET 8 In-proc App: Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0, Culture=neutral' #10567

@jsquire

Description

@jsquire

Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, #46755.

Please be aware that @PauCoda is the author of the original issue and include them for any questions or replies.

Functions team:

This application is using the in-proc model with a net8.0 opt-in and referencing several Azure SDK packages as part of the function body. They're seeing a failure loading one of the 6.x line of packages. The Azure SDK team cannot reproduce this in a stand-alone application, as .NET assembly resolution hoists the dependency if a newer version is reference directly or as a transitive dependency. We have only been able to repro in an in-proc function app. and believe that its related to the host environment.

Your thoughts would be appreciated on potential steps to unblock.

Details

I'm hosting as an in-proc Azure Function and have "FUNCTIONS_INPROC_NET8_ENABLED": "1" in app settings. I'm running code from Azure.ResourceManager.Compute v1.6.0 and getting:

[2024-10-22T08:23:47.919Z] Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=...'. 
The system cannot find the file specified.

Add all required libraries I use for my project:

<PackageReference Include="Azure.Core" Version="1.44.1" />
<PackageReference Include="Azure.Identity" Version="1.13.0" />
<PackageReference Include="Azure.ResourceManager" Version="1.13.0" />
<PackageReference Include="Azure.ResourceManager.Compute" Version="1.6.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.3.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />

Code can be found in the original issue in the Azure SDK repository.

Environment

Host:
Version: 8.0.10
Architecture: x64
Windows 10

.NET SDK:
Version: 8.0.110

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions