The extra lines generated are not supported in Silverlight/WPF environment.
Those lines will look like
<extendedprotectionpolicy policyenforcement="Never" />There are some limitations for silverlight & WPF to use custombinding. You can read an article related to this at
Those extra tags can be deleted or commented to run the application.