Hi @Satyasai Gunnam,
When upgrading from .NET8 to .NET9, we not only need to adjust the Target framework, but also upgrade all packages to latest version.
For me, I upgraded below packages.
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
You need to check it in Nuget Package Manager tool.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Jason