❔ ❔ Upgrading my function app to .NET 7 - Could not load file or assembly System.ComponentModel
I've tried to upgrade my Azure Function App to .NET 7. But
Microsoft.Azure.WebJobs.Extension.Storage.Queues
is giving the error Could not load file or assembly 'System.ComponentModel, Version=7.0.0.0...
; am I just too fast in that my dependencies don't support .NET 7 yet? Or is there a particular package that I need to get/update? I have the latest version of everything that I had when it worked before.43 Replies
I also had a similar problem with
System.Net.Http
which I resolved by updating Microsoft.Extensions.Http
; wondering if there is something I should add here to fix System.ComponentModel
or if I just need to wait
BumpHave you tried building a new function app from scratch to check for a minimal repro?
Ah, I have not. I'll try a basic repo with a storage trigger.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Been on holiday; will get back to it this week.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Switching on my work laptop; I'll take a look
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
When I last checked the Microsoft Docs were still recommending that package
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
So the
Microsoft.Azure.WebJobs.Extensions.Storage
package adds attributes for function app triggers.Azure Blob storage trigger and bindings for Azure Functions
Learn to use the Azure Blob storage trigger and bindings in Azure Functions.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I don't need queues, I just need blobs. Uninstalling
Microsoft.Azure.WebJobs.Extensions.Storage
and installing Microsoft.Azure.WebJobs.Extensions.Storage.Blobs
to see how it goes.
Now it claims it cannot load/find assembly System.Collections.Concurrent, Version=7.0.0.0
in Microsoft.Azure.WebJobs.Script.WebHost.WebJobsScriptHostService
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'll see if I can get it off of my work laptop
As Discord is blocked at work
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No worries, there is nothing identifying in the csproj. Thanks.
Trying to find a pasting site which isn't blocked...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@tebeco https://controlc.com/33e6cc2c
RE:#6900e687 - 33e6cc2c
net7.0
Found one
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
gist doesn't seem to be blocked; I'll use it in the future.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ah, perhaps I can remove that as it should be redundant.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Removed it, did a clean/rebuild and tried running the function app. Same error.
I reckon that NuGet package was added a while ago for some redundant reason and removing it was forgotten.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ohhhhh you're right!
Switching it to .NET 6 and testing...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
So I don't have that problem on .NET 6
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I could either stick to .NET 6 or switch to an isolated worker process...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yepppppp
Thanks, I'll limit myself to LTS/6.
This teaches me to be better at reading the docs.
Thank you!
Once this is deployed to Azure and working I'll close the thread.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I have a blob function in my Azure function app
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Whenever a file/blob is added to my blob storage, it picks up the file, parses the CSV and uploads the data to Salesforce.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
tebeco#0205
and is that a serverless one of a functionapp ?
Quoted by
<@!689473681302224947> from #❔ Upgrading my function app to .NET 7 - Could not load file or assembly System.ComponentModel (click here)
React with ❌ to remove this embed.
It is serverless
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.