-
Notifications
You must be signed in to change notification settings - Fork 457
Azure Functions - Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0 #10575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can confirm. Also facing this issue. Workaround I have seems to be having System.Memory.Data 6.0.0 installed as a separate NuGet package, building the solution, and copying the System.Memory.Data.dll file to the bin subdirectory in the bin folder, at least in Debug. (I assume Release would be the same way). Which leads to a folder structure like For whatever reason, this dependency isn't getting copied to that bin subfolder. Side effect: Any time I make a change to the Azure Function project and rebuild, the copied System.Memory.Data.dll file disappears, and the error pops up again. @fhtino - FYI. |
Facing the same issue recently while trying to use Azure.Storage.Blobs |
Having same issue with Microsoft.Azure.WebJobs.Extensions.Storage.Queues. System.Private.CoreLib: Exception has been thrown by the target of an invocation. Microsoft.Azure.WebJobs.Extensions.Storage.Queues: Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0, Culture=neutral. The system cannot find the file specified. |
I am also facing the same issue |
The prescribed workaround (see above: "<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>") worked. |
Same issue with using Azure.Security.KeyVault.Secrets and callingSecretClient.GetSecretAsync. @nodeomega's workaround worked for me. Good looking out. Hopefully this gets fixed soon. |
Wer are using nodejs and as such can not use @nodeomega 's workaround. |
Alternative workaround <ItemGroup>
<FunctionsPreservedDependencies Include="System.Memory.Data.dll" />
</ItemGroup> |
This comment has been minimized.
This comment has been minimized.
Having the same issue for the latest |
We have the same issue with |
I can confirm that this alone as the single change, made it work as expected. |
Had the same issue, this is the only thing that solved it. Unfortunately version 1.15.0 kept giving me: |
Hi @jsquire , the workarounds that add some properties in the project file still don't work for The not working workarounds include:
If you need any other information from me, please let me know. |
<ItemGroup>
<FunctionsPreservedDependencies Include="System.Memory.Data.dll" />
</ItemGroup> This workaround did not work. We need a permanent solution. This issue must be addressed ASAP as it's a roadblock. |
I spent a significant amount of time resolving an issue involving dependencies on System.Memory.Data 6.0.0. Locally, I managed to get things working by manually replacing the DLL with version 6.0.0 in the AzureFunctionsTools folder at:
However, on Azure, this isn't possible due to the lack of access for patching DLLs directly. After extensive troubleshooting, I discovered that the recent upgrade to This complex dependency setup clearly needs addressing. Ideally, we should also have more control over configuration in Azure to facilitate such troubleshooting. If there are any ways to achieve this, please let me know. Having used Azure Functions since v1, I’ve found it to be a convenient but often frustrating service. The migration paths (e.g., isolated functions, v1 to v2) have been rocky, and these issues make maintaining reliable services challenging. I encourage proactive measures to improve stability in the Azure Functions ecosystem. 🙏 |
I've got the same issue here regarding the SignalRService package. None of the workarounds fix anything in this instance, other than reverting to 1.14.1, including things I had tried from other places (for example using assembly binding redirects) Would love to see a resolution for this. |
The current mitigation is to either downgrade the package bringing the dependency, or update the project configuration mentioned in the issue if using the .NET in-proc model: <ItemGroup>
<FunctionsPreservedDependencies Include="System.Memory.Data.dll" />
</ItemGroup> For the .NET Isolated model, the impacted package (SignalR) must be downgraded. We will work with the appropriate team to delist in the meantime, as this was an invalid update. We'll also be working with them to ensure this issue is prevented in the future. A fix for this will be rolling out with the next host deployment. Thank you all for the report and patience. |
Same issue when upgrading to: https://github.com/Azure/azure-functions-dotnet-worker/releases/tag/servicebus-extension-5.22.2 Rolling back fixed it, running on isolated workers, linux, dotnet 9 (build with latest sdk), deployed in west europe What's a valid test we can run to prevent this? So that we can catch this before deploying it? |
I've been told it is due by end of this week but I can't promise it will be - so end of this week or potentialy early next. |
This issue appears to be a duplicate of the broader tracking issue related to assembly resolution errors in the Azure Functions runtime environment with regards to If open bugs escalation aggregation let issue Aggregate recomplet assign lookup STRICT_TRACK! |
Just adding my two cents, as I just upgraded Microsoft.Azure.WebJobs.Extensions.ServiceBus to 5.22.2 and blew up all my Azure functions. Rolling back to 5.22.1 fixed the issue. Microsoft.Azure.WebJobs.Extensions.ServiceBus: Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0, Culture=neutral, PublicKeyREDACTED
|
this following helped me:
|
According to nuget the latest is 5.16.5
This is from Azure:
However the dll is definely part of the deployed artifact.
My artifact is build in Azure Devops using dotnet Build and Publish on Ubuntu Latest. In azure running NET 9 - Isolated function on a Linux AppService Plan - so implicitly in a docker container. Running locally it works just fine using: |
as @RobK410 i just upgraded Microsoft.Azure.WebJobs.Extensions.ServiceBus ** to ** 5.22.2 function started failing i tried @sastru change + adding System.Memory.Data Nuget Package but still failed.. the only thing worked was rolling back to version 5.22.1 .. I am using Azure Function Isolated with .Net 8 running it as docker container. |
Is there any update on this topic? [2025-03-28T10:14:41.551Z] A host error has occurred during startup operation 'f2208242-0b3e-470c-ab0b-f59a1da2536f'. |
What I've seen is this - Mac/Brew Python 3.11.9 --- issues - possible to upgrade to most recent core utils BUT need to deploy grpc manually. If not comfortable - wait for official release (Hope this helps) |
i'm using Python 3.11.9 and i need quickly to fix this issue, i can't waint for official release. What i have to do to deploy grpc manually ( and what is grpc?) |
I did this earlier with another dev - it should work if not -- Check your current function-core-tools version. Make note of this.
I don't have screenshots of step 8 - but the folder names where the new compiled files are matches the one in brew/cellar folder. Just copy/replace/force. Run func start and you should be good to go - note that you'll get weird errors/warnings but that should get you going with your local azurite. I'm currently investigating what the effort is to move to 3.11.10 |
This is starting to become a real issue for os. Starting this week, we have been getting weird YARP exceptions in our Functions. Upgrading to the last versions of the Worker packages solved this. However, now, we are experiencing this issue with the new package versions, leading to a catch-22 where we are failing both on the newest version but also when rolling back. |
This comment has been minimized.
This comment has been minimized.
@liliankasem we have function apps in Australia East and Australia South East that are hitting this issue and are still on v4.1036. Can we get an ETA on the upgrade across Azure? |
Our functions on consumption plan are updated. Those on a dedicated appservice plan are still on v4.1036 |
@alexwiese Can you share some information about your environment? @martin-poelzl-AP Are you on Windows or Linux? Can you share a bit more about your hosting plan? |
We have function apps across AU East and AU South East. |
@satvu It is a P0v3 plan on linux (not using container images). We use the same plan for multiple functions. All these are on 1036 |
4.1037 and higher versions are not yet available on Linux Dedicated for dotnet-isolated customers. Our current ETA for these customers is between April 18-April 25. For those who are not on dotnet-isolated in Linux Dedicated and are unable to pick up a new host version on restart, please open a support ticket (through the Azure portal) for further investigation. |
@alexwiese The windows dedicated apps should be able to pick up a new version on restart - if you're still unable to pick up 4.1037, please open a support ticket so we can investigate. |
Hi guys - i am using a python blolb trigger and the issue has just started. http trigger is fine though. I am getting sytem.memory.data error. any idea of a fix ? I am using tools verion 4.0.5907 and python 3.10.11 - and these cannot be changed easy. help would be amazing. this is the same on a new project and also an older project. I have also added "_functionSkipCleanOuutput" in the host.json file and this did not work and said its not allowed. |
@satvu, does this apply to functions hosted in container apps too? |
Try what I did (as I mentioned I did this with another dev as well): #10575 (comment) |
@JasonHough75 You need core-tools version 4.0.703 which has host version 4.1037. This is the latest released version. @VictorLinares dotnet-isolated images (see tags on docker hub) are currently in the process of being updated and should be done by April 18-25 as well. |
@satvu Thanks for the info. |
Issue Transfer
This issue has been transferred from the Azure SDK for .NET repository, #46577.
Please be aware that @fhtino is the author of the original issue and include them for any questions or replies.
Details
Library name and version
Azure.Data.Tables 12.9.1 and Azure.Storage.Blobs 12.22.2
Describe the bug
Cannot use Azure.Data.Tables and Azure.Storage.Blobs in the same Azure Functions project in VS 2022. When I use the TableClient I get
Sample project with the issue:
https://github.com/fhtino/publicissues/tree/main/az-func-cannot-load-assembly
Workaround: place _FunctionsSkipCleanOutput in the project file:
Expected behavior
no errors
Actual behavior
Exception: System.Memory.Data, Version=6.0.0.0 not found
Reproduction Steps
sample here: https://github.com/fhtino/publicissues/tree/main/az-func-cannot-load-assembly
Environment
The text was updated successfully, but these errors were encountered: