Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a PSA app with WindowsAPP SDK #4304

Open
nitish14s opened this issue Apr 2, 2024 Discussed in #4301 · 0 comments
Open

Create a PSA app with WindowsAPP SDK #4304

nitish14s opened this issue Apr 2, 2024 Discussed in #4301 · 0 comments

Comments

@nitish14s
Copy link

Discussed in #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

<printsupport:Extension Category="windows.printSupportSettingsUI" EntryPoint="$targetentrypoint$"/>

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.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.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants