简体   繁体   中英

Published WPF application exception

I can run my published WPF application file locally fine, however if I install to another machine I get a Windows report error dialog. The only useful error info I see is System.Windows.Markup.XamlParseException .

I've included all the necessary assembly used in the project, plus the 3rd party assemblies (syncfusion) also included in the GAC of that machine. Is there anything I'm missing?

The reported xaml parse exception in the machines other than the local machine may due to the resource files not being included along with the deployed files while publishing the application. So please ensure that the necessary resource files needed for the application are marked as “Include” in the Publish Status like in the below screenshot.

Screenshot

Please check and let us know if it is helpful.

Regards, Gokul S

I had a similar issues in published WPF .NET Core 3.1 VS 2019.

To me the solution was disabling Trim unused assemblies (in preview) :

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM