最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - Could not load file or assembly 'System.Memory.Data, Version=6.0.0.0' when trying to debug

programmeradmin2浏览0评论

I'm trying to debug my azure functions (Python) in VS Code for macOS. Everything was working fine until last week when I started getting this error when trying to debug using 'Attach to Python functions'

Reverting my code to older commits (where it was definitively working) did not help. I also re-installed VS Code, still getting the error.

Building into a docker container and running the container works, it's just the debugging in VS Code that does not work.

[2025-03-31T09:40:13.208Z] A host error has occurred during startup operation 'fea6e68a-2e7f-43ca-b8e4-3e32814d60fa'.
[2025-03-31T09:40:13.208Z] System.Private.CoreLib: Exception has been thrown by the target of an invocation. 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.
[2025-03-31T09:40:13.208Z] .
Value cannot be null. (Parameter 'provider')
[2025-03-31T09:40:13.233Z] Host startup operation has been canceled

I'd be grateful for any hints on how to fix this

I'm trying to debug my azure functions (Python) in VS Code for macOS. Everything was working fine until last week when I started getting this error when trying to debug using 'Attach to Python functions'

Reverting my code to older commits (where it was definitively working) did not help. I also re-installed VS Code, still getting the error.

Building into a docker container and running the container works, it's just the debugging in VS Code that does not work.

[2025-03-31T09:40:13.208Z] A host error has occurred during startup operation 'fea6e68a-2e7f-43ca-b8e4-3e32814d60fa'.
[2025-03-31T09:40:13.208Z] System.Private.CoreLib: Exception has been thrown by the target of an invocation. 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.
[2025-03-31T09:40:13.208Z] .
Value cannot be null. (Parameter 'provider')
[2025-03-31T09:40:13.233Z] Host startup operation has been canceled

I'd be grateful for any hints on how to fix this

Share Improve this question asked Mar 31 at 9:54 romtecmaxromtecmax 212 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

We also just started seeing this today running C# Azure Function Apps in .NET 6. Are you using NServiceBus also?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论