Azure Communication Services "System.Memory, Version=4.0.1.2" file not found exception

Farhat Abbas 0 Reputation points
2025-12-03T19:28:48.7+00:00

Azure communication services work fine on a console application but if I write this code on a function app it throws error "FileNotFoundException: Could not load file or assembly 'System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=xxxxxxx' or one of its dependencies. The system cannot find the file specified."
After adding assembly reference for "Azure.Communication.Email" it update the latest version of System.Memory and doesn't give option to downgrade it.

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

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.