question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function startup fails when using System.Memory.Data 6.0.0

See original GitHub issue

When attempting to start a v4 function app that uses System.Memory.Data 6.0.0, startup fails due to the following error:

[2021-12-14T19:33:56.629Z] A host error has occurred during startup operation 'd5f7db36-8721-4169-9c45-6fc51fc33530'.
[2021-12-14T19:33:56.638Z] App: 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.
Value cannot be null. (Parameter 'provider')

The version of System.Memory.Data delivered in Core Tools 4.10.1 is 1.0.2. Replacing this DLL with a 6.0.0 version in the Core Tools CLI directory resolves this startup error.

(Replaced %USERPROFILE%\AppData\Local\AzureFunctionsTools\Releases\4.10.1\cli_x64\System.Memory.Data.dll)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

3reactions
EvanMulawskicommented, Dec 20, 2021

Workaround: adding <_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput> to the project file.

1reaction
bartsokolcommented, Jun 8, 2022

Is there any update on this? We are experiencing the same issue when trying to make a call to blob storage on functions 4 / .NET 6. The workaround with _FunctionsSkipCleanOutput works, but it would be great to not be forced to use some workaround flags.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is an Azure Function on .NET 6 looking for System. ...
When I publish the Azure Function to Azure, I see in Azure Portal a "Functions runtime error" which says: Could not load file...
Read more >
Windows 10 .Net 6 or .Net 7 runtime getting error Could not ...
Windows 10 .Net 6 or .Net 7 runtime getting error Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0.
Read more >
Troubleshoot .NET Framework targeting errors
This article provides resolutions for MSBuild errors that might occur because of reference issues.
Read more >
System.Memory.Data 6.0.0
A lightweight abstraction for a payload of bytes. Provides methods for converting between strings, streams, JSON, and bytes.
Read more >
VMware Tanzu Greenplum Command Center v6.0 Documentation
Enable Kerberos for Command Center. 70. Authenticating With Kerberos on the Client Workstation. 70. Monitoring the Greenplum Database System. 71. Dashboard.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found