Skip to content

Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0 for ServiceBus v5.22.2 #3086

@saraeq

Description

@saraeq

Description

When updating from v5.22.1 to v5.22.2 for package Microsoft.Azure.Functions.Worker.Extensions.ServiceBus we are receiving exceptions related to system.memory.data dll file which is not able to be found despite existing in the bin folder.

Have tried to preserve dll with

  <ItemGroup>
    <FunctionsPreservedDependencies Include="System.Memory.Data.dll" />
  </ItemGroup>

but error still persists.

Current workaround to downgrade to v5.22.1.

Project file setup:

	<PropertyGroup>
		<TargetFramework>net8</TargetFramework>
		<AzureFunctionsVersion>v4</AzureFunctionsVersion>
		<OutputType>Exe</OutputType>
		<ImplicitUsings>enable</ImplicitUsings>
		<Nullable>enable</Nullable>
		<LangVersion>latest</LangVersion>
		<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
		<DockerfileContext>..\..</DockerfileContext>
	</PropertyGroup>

Error:
Image

Steps to reproduce

  • Update package version for Microsoft.Azure.Functions.Worker.Extensions.ServiceBus to v5.22.2
  • Run function, observe system.memory.data exception

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions