Forum Discussion

bcoker81's avatar
bcoker81
Copper Contributor
Mar 07, 2024

Problems running application in .Net MAUI after upgrade from .Net 6 to .Net 8

Good morning,

 

The organization I work for has been developing a Maui-Blazor hybrid application. We were able to install it and it was working through our deployment process when we were using .Net 6.0. After the upgrade to .Net 8.0, it will no longer run on some of the machines. We are using Panasonic CF-33 toughbooks with the same clones on them. They have the same hardware specs.

 

We have tried completely uninstalling the application, we've removed any runtimes from .Net and then did complete reinstalls of the runtimes. We've installed .Net Desktop Runtime and the .Net 8 runtime. We've reinstalled the application. There are no errors in the event viewer when we launch the application. When the application is launched from the start menu (either as admin or regular) the cursor spins for a moment and nothing happens. 

 

We've added logging in the startup pipeline of the application after we initially documented this behavior and deployed that and it's not even getting to the logging to log anything. 

 

Occassionally we get a kernelbase.dll error in the event viewer when launching but it's not consistently there. Some of the machines it opens on and some it doesn't. We are unable to find any discrepancies between the devices ie, same release of windows 10, same runtimes, etc. 

 

I would appreciate if anyone could comment on this for some tips or maybe something we could try. I have noticed that through the various installs (incrementing version/release) there are several folders created in the WindowsApps folder that are for the previous versions even if we have uninstalled them. We thought maybe that could be causing a problem. 

 

Thanks for your time and hope to hear from someone soon. Have a great day!

  • ShantiSharma's avatar
    ShantiSharma
    Copper Contributor

    Hi, I am too getting kernel32base.dll error after I have upgraded my maui hybrid application to .net 8.0 . I was using .Net7.0 earlier and application was behaving well . Now I am just getting application error  as follows when i close my running aplication using windows close click

    Unhandled exception at 0x00007FFB0CD8FABC (KernelBase.dll) in xxxxxx.exe: 0xE0434352 (parameters: 0xFFFFFFFF80131534, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FF992640000).

     

    any immediate help in solving this is appreciated

    • ShantiSharma's avatar
      ShantiSharma
      Copper Contributor
      I just got the error solved by specifying <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>

      to a PropertyGroup in the project file.

Resources