Reputation: 43
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?
Upvotes: 1
Views: 316
Reputation: 104741
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):
Upvotes: 0
Reputation: 11
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.
Please check and let us know if it is helpful.
Regards, Gokul S
Upvotes: 1