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

SampleBrowser.SfPdfViewer does not start in UWP #52

Open
WillAutioItrax opened this issue Jun 28, 2022 · 2 comments
Open

SampleBrowser.SfPdfViewer does not start in UWP #52

WillAutioItrax opened this issue Jun 28, 2022 · 2 comments

Comments

@WillAutioItrax
Copy link

I simply download and extract the whole of the SampleBrowser.
Rename the folder because it causes a path length issue.
Open in Visual Studio 2022 current version.
Wait for a few moments until the pointer stops spinning.
Select X64, SampleBrowser.SfPdfViewer.UWP, Local Machine.
Run it.

I get the following error:

Exception thrown: 'System.TypeLoadException' in SampleBrowser.SfPdfViewer.UWP.exe An exception of type 'System.TypeLoadException' occurred in SampleBrowser.SfPdfViewer.UWP.exe but was not handled in user code Could not find Windows Runtime type 'Windows.UI.Xaml.Markup.IXamlType2'.

Thanks for looking at this.

@VikramDevaraj31
Copy link

Hi Team,

We were able to replicate the reported issue. However, this issue can be fix through sample level by increasing the target version and min version(E.g., windows 10, version 2004(10.0; Build 19041)).

Steps to change the Target version:

  1. Right click the UWP project.
    2.Select the “Properties”.
    3.In application, Increase the target version.

Even though this issue can be fix through sample level, we will change the target version in our end and the changes will be moved in our volume 2 - Service Pack release, which is expected to be available by July 2022.

Regards,
Vikram

@WillAutioItrax
Copy link
Author

In my case, the Target was at the max already. However, increasing the min fixed the issue and I was able to run the demo. Thanks!

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

No branches or pull requests

2 participants