We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

System.Windows.Markup.XamlParseException when running Unit Tests

Thread ID:





120294 Sep 17,2015 05:47 PM UTC Sep 18,2015 10:19 AM UTC WPF 1
Tags: SfDataGrid
Asked On September 17, 2015 05:47 PM UTC


I'm using the SfDataGrid and everything works well until I try to run unit tests on the UserControl that contains the datagrid, then I get the following error:

System.Windows.Markup.XamlParseException: 'The invocation of the constructor on type 'Syncfusion.UI.Xaml.Grid.SfDataGrid' that matches the specified binding constraints threw an exception.' Line number '25' and line position '10'. ---> System.TypeInitializationException: The type initializer for 'Syncfusion.UI.Xaml.Grid.SfDataGrid' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.

I'm not sure why this is happening as the test used to work just fine.

Using VS2015 with Syncfusion version

Jai Ganesh S [Syncfusion]
Replied On September 18, 2015 10:19 AM UTC

Hi Ralph,

Thank you for using Syncfusion products.

We have analyzed your query. A support incident to track the status of this query has been created under your account. Please log on to our support website to check for further updates


Please let me know if you have any questions.

Thank you,
Jai Ganesh S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon