How to fix the error - Could not load file or assembly 'System.Memory.Data, Version, under the Azure Durable function

raviteja vemulakonda 20 Reputation points
2025-06-23T13:16:29.1666667+00:00

I'm building a Azure Durable function with Python framework in my local VS Code. While I'm running the function in the visual studio, I'm getting the below error.

The listener for function 'Functions.orchestrator' was unable to start. Azure.Core: Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

I'm using the Azurite for the local storage and the services are also listening under the below ports.

User's image

Hi All,

Please find the below host.json and localsettings.json

host.json

{

"version": "2.0",

"extensionBundle": {

"id": "Microsoft.Azure.Functions.ExtensionBundle",

"version": "[4.*, 5.0.0)"
```  }

}

local settings.json

{

  "IsEncrypted": false,

  "Values": {

```yaml
"AzureWebJobsStorage": "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;",

"FUNCTIONS_WORKER_RUNTIME": "python",

"DurableFunctionsHubName": "MyDurableFunctionsHub"
```  }

}

Could some one help me in resolving the above error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

Answer accepted by question author
  1. Krishna Chowdary Paricharla 2,915 Reputation points Microsoft External Staff Moderator
    2025-07-02T09:50:37.5633333+00:00

    Hello raviteja vemulakonda,

    Thanks for your patience on this. I am summarizing our offline discussion and posting the same as answer for the benefit of other community members.

    Issue : You are encountering the following error with the Azure Durable Function: "Could not load file or assembly 'System.Memory.Data, Version'."

    Mitigation/Workaround:

    • Updated your host.json to the following: { "version": "2.0", "extensionBundle": {
      "id": "Microsoft.Azure.Functions.ExtensionBundle",
      
      "version": "[3.3.0, 4.0.0)"
      
      } }
    • Extension Bundle 3 is the final version that provides exclusive support for Python without requiring .NET dependencies. Versions 4 and above are intended for .NET-isolated workers and may lead to unexpected assembly loading errors.

    Please do let us know in case of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
    User's image Thankyou!

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.