❔ ❔ 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
jayfromengland
jayfromenglandOP3y ago
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 Bump
Mayor McCheese
Have you tried building a new function app from scratch to check for a minimal repro?
jayfromengland
jayfromenglandOP3y ago
Ah, I have not. I'll try a basic repo with a storage trigger.
Accord
Accord3y ago
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.
jayfromengland
jayfromenglandOP2y ago
Been on holiday; will get back to it this week.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
Switching on my work laptop; I'll take a look
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
When I last checked the Microsoft Docs were still recommending that package
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
So the Microsoft.Azure.WebJobs.Extensions.Storage package adds attributes for function app triggers.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
I'll see if I can get it off of my work laptop As Discord is blocked at work
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
No worries, there is nothing identifying in the csproj. Thanks. Trying to find a pasting site which isn't blocked...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
Found one
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
gist doesn't seem to be blocked; I'll use it in the future.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
Ah, perhaps I can remove that as it should be redundant.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
Ohhhhh you're right! Switching it to .NET 6 and testing...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
So I don't have that problem on .NET 6
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
I could either stick to .NET 6 or switch to an isolated worker process...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
I have a blob function in my Azure function app
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
jayfromenglandOP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2y ago
tebeco#0205
and is that a serverless one of a functionapp ?
React with ❌ to remove this embed.
jayfromengland
jayfromenglandOP2y ago
It is serverless
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server