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.
Unfortunately, activation email could not send to your email. Please try again.

System.Windows.Markup.XamlParseException when running Unit Tests

Thread ID:

Created:

Updated:

Platform:

Replies:

120294 Sep 17,2015 01:47 PM Sep 18,2015 06:19 AM WPF 1
loading
Tags: SfDataGrid
Ralph
Asked On September 17, 2015 01:47 PM

Hi

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 13.2.0.34

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

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

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Please let me know if you have any questions.

Thank you,
Jai Ganesh S

CONFIRMATION

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.

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.

;