WPF: Any reason why xamlparse exception is on XP, but not on Vista?

My application compiles fine. Works fine on Vista machines. But it does not even start on XP machines with the exception of the xaml syntax in the first form.

All xp machines have .net 3.5.

Anything spring for the mind?

Thanks.

+4
source share
2 answers

This exception can mean anything.

If you do as described in this post (this is not so much, just try / catch and get an internal exception), you should be able to see more details and hopefully find the reason for the exception (which may be trivial).

Hope this works for you.

+2
source

The XAML syntax exception is an external exception that is thrown when the form creates all the children. This is likely to be thrown because one of these children throws another exception during instance creation. You need to check the InnerException property to exclude xamlparse, InnerException for InnerException, etc., until you find the root exception that causes the problem.

My first guess would be the lack of a service pack, but the only way to find out for sure is to find the root exception.

+1
source

Source: https://habr.com/ru/post/1301984/


All Articles