Hello there,
Could you check the Capabilities in your package.appxmanifest to see if there is <rescap:Capability Name="runFullTrust" /> under it ? When you package your WPF as a desktop bridge app, this capability need be added under the Capabilities . runFullTrust is a capabilities which allows apps to run at the full trust permission level on the user's machine.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--