❔ ❔ 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
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
Ah, I have not. I'll try a basic repo with a storage trigger.
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.
jayfromengland
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
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
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
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
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
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
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
Found one
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jayfromengland
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
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
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
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
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
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
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
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
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
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
More Posts
❔ How to set a time interval in a timer ?This is the class: ```csharp public string ProcessName { get; set; } public int MaximumLifeTime { ge❔ EntityFramework does not track changes for the select projectionHey, With Select (), I only extracted the data I needed, which I want to update later. However, afte❔ Using concurrent collections to add or remove elements for in-memory collections (server)?Should we use concurrent collections to add/remove elements to/from in-memory collections in asp.net❔ .NET 6 GET method returns OK even if there is no such endpointI've a .NET 6 Web Application with Blazor wasm front-end. When I make an HTTP GET request from froSolvedI have made a square root calculator It works when someone enters an invalid Input to the square roHow to set a 15 seconds timeonly type varible ?I want to archive something like in the image❔ yaml parser with native aotis there any yaml parser library that supports native aot? i tried yamldotnet but it doesnt work witHow would I check if a generic type is unmanaged, then pass it to a method with where T ; unmanaged?I have a method that needs to call different methods based on whether T is managed or not. I'm not s❔ dotnet build quiet still showing a lot of warningsrunning `dotnet build --verbosity quiet` is still showing a lot of warnings. Any suggestions on how ❔ Source code generator with reference to the main projectI have some methods in a project that I want to go through using reflection at compile time to gener