WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Create a PSA app with WindowsAPP SDK

Open nitish14s opened this issue 1 year ago • 1 comments

Discussed in https://github.com/microsoft/WindowsAppSDK/discussions/4301

Originally posted by nitish14s March 31, 2024 I am trying to create a PSA app using WindowsAPPSDK (WinUI3). I have created it as a multiinstancing app and updated the Package.AppManifest of the app <Extensions> <printsupport:Extension Category="windows.printSupportSettingsUI" EntryPoint="$targetentrypoint$"/> </Extensions>

But when while opening from a IPP enabled printer to open this app on clicking the Printer Preferences, app is crashing with System.Runtime.InteropServices.COMException

Steps to Reproduce

  1. Add the IPP Class driver (Add printer via IPP)
  2. Associate the printer to the PSA via regedit by adding a new key "Association" and add a new value to the registry by adding the app details as in the below screenshot image 3.Run the package app and click on Preferences button as available in the IPP Class Driver image given below
  3. Observe.
  4. ComException occurs
  5. Attaching the sample along

PSASample.zip

Stacktrace

at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr) at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(IObjectReference _obj, Object component, Uri resourceLocator) at PSASample.App.InitializeComponent() in C:\code\PSASample\PSASample\PSASample\obj\x64\Debug\net6.0-windows10.0.19041.0\App.g.i.cs:line 57 at PSASample.App..ctor() in C:\code\PSASample\PSASample\PSASample\App.xaml.cs:line 36 at PSASample.Program.<>c__DisplayClass1_0.<RedirectActivationTo>b__0() in C:\code\PSASample\PSASample\PSASample\Program.cs:line 46 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

##IPP Class Driver image

nitish14s avatar Apr 02 '24 06:04 nitish14s

Thank you for reporting this issue. Are you still experiencing the problem? If so, could you provide the latest reproduction steps and consider submitting an item via the FeedbackHub as well?

Thank you!

ssparach avatar Jun 17 '25 21:06 ssparach

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.