aspnetcore: Blazor error after update to .NET 8: Failed to start platform.
I’ve tried to update my solution to .NET 8 RC.1. I’ve updated all packages and cleaned all bin and obj folders. Still, I ended up with the following error:
Failed to start platform. Reason: TypeError: Cannot read properties of undefined (reading ‘AspNetCore’)
This error shows up in the browser console when I start the app and open the Blazor client website. Is this a known issue? How can I go about debugging it?
My solution contains 3 distinct Blazor clients. One client works fine after update, two get this error, so I think this will be a common issue. I don’t have an example project I could share publicly, but I thought it’s worth creating the issue, so when others fail to update to .NET 8 and face the same issue, they can find it, give it a 👍 or contribute.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 6
- Comments: 17 (1 by maintainers)
@pekspro @sequarell
I was able to resolve this by:
I noticed that the versions in VS didn’t match the packagereference versions. NOthing except actually copy-pasting them in and out actually resolved this.
Seems to be some kind of bug in VS preview.
Excacly the same issue with the released version from today. Cache storage cleaning doesnt help. The only thing that really helps me was the tip from @AbstractionsAs
Cutting the packagereferences from the .csproj Saving the csproj and waiting for the references to update in VS Pasting the packagereferences back in Clean Rebuild
that works for me
@AbstractionsAs, @sequarell, this thread is closed, I doubt anyone is watching 😃
I’ve created a new thread here: https://github.com/dotnet/aspnetcore/issues/51268
Maybe it doesn’t help your case but .net 8 rc1 is broken. Try with preview7 or daily rc2 builds.