-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message "Error configuring services in an external startup class. ---> System.IO.FileNotFoundException : Could not load file or assembly 'System.ComponentModel, Version=8.0.0.0" when migrating to .NET 8 with in-process model #10391
Comments
Also seeing a similar issue |
Hi @bhagyshricompany, any feedback on this issue? The issue happened after I deploying the .NET 8 azure function with in-process model first, then I configured the setting FUNCTIONS_INPROC_NET8_ENABLED = 1 after that. Notice: the error message will disappear after a day. |
I am stuck with this issue as well. Does this have a resolution? |
@mtv-tuanva, @aravindM365, try adding |
It's already there in the csproj file.
|
Seeing the same issue on two of our function apps (running locally - Windows 11, VS 2022, haven't tried running in Azure yet) All I did was upgrade two .NET 6 Function apps to target .NET 8 (leaving them as in-process functions). I also have the "FUNCTIONS_INPROC_NET8_ENABLED": "1"
"FUNCTIONS_WORKER_RUNTIME": "dotnet" Both of these apps fail to start when I hit F5. One fails with:
The other one fails with:
In Visual Studio, I also went to Tools -> Options -> Projects and Solution -> Azure Functions. Checked to make sure I had the most recent Azure Function toolsets and they are up to date. |
You can try adding the Extension Bundle in
|
@aravindM365 Extension Bundles don't apply to C#. Both of our functions apps are complied C# code. Trying to use extensions results in the error:
|
That's strange because ours is also compiled C# code but adding the extension bundle resolved the original error of this thread. Here is the complete
|
@aravindM365 This fixed your issue running locally? Or in Azure? I have not tested the upgraded (.NET 8) function apps in Azure yet since I can't even do any local testing due to the issue outlined in my original reply. For reference, this is the version information the runtime dumps before I get the error about removing
|
After the .Net 8 upgrade, everything worked fine locally. I only saw the original error mentioned on this thread when I published my function app to Azure. Sounds like our issues are different. |
And you stuck with the in-process model, right? Or did you upgrade to the isolated one? |
The function apps I upgraded to .Net 8 are still in in-process model, yes. |
Hello All, I am using Azure function and upgraded to .Net 8 with in-proc and facing below issue only at Azure not locally Microsoft.Azure.WebJobs.Script.ExternalStartupException : Error configuring services in an external startup class. ---> I tried adding try adding <_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput> Please suggest. |
Any updates.. Did this work locally for you ? I am running into same issue |
If it is an error in your local setup of In-Process, you need to add this in your local.settings.json: |
I followed this guideline to migrate azure function in-process model to .NET 8 (#9951 (comment)).
But after deploying to azure window function app, I got following error message even all functions is able working well
How do I find the System.ComponentModel package with Version=8.0.0.0? I see the latest version from Nuget is 4.3.0 instead of 8.0.0.0.
Does anyone know the issue and help me how to fix it?
Thank you,
Tuan Vo
The text was updated successfully, but these errors were encountered: