- Home
- Forum
- General Discussion
- Cannot create instance of type 'Syncfusion.UI.Xaml.Grid.SfDataGrid'
Cannot create instance of type 'Syncfusion.UI.Xaml.Grid.SfDataGrid'
Hi,
After not working on our UWP app for a year, I was allowed to come back to it. I had to upgrade from VS2015 to VS2017 and had to install the latest Syncfusion for UWP.
I replaced references to the SF dlls at
C:\Program Files (x86)\Syncfusion\Essential Studio\15.4.0.17\Universal Windows\10.0\SDK\References\CommonConfiguration\neutral\Syncfusion.whatever
Now I can compile and run.
However, when it tries to load a page with an SFDataGrid, it fails. I get the following exception:
Initializing error: The text associated with this error code could not be found.\r\n\r\n Cannot create instance of type 'Syncfusion.UI.Xaml.Grid.SfDataGrid' [Line: 66 Position: 30] What would cause this? Have I linked to the wrong version of the references? Have I missed a reference?
BTW, I tried creating a blank project with the SF template and selected Reference Type = Assemblies and then selected from Components, DataGrids. Upon pressing enter, I was informed that I had:
Missing Assemblies
Note:
The project may not compile properly because the following assemblies are missing from installed location. Do you want to continue?
[and it has a list box with about ten items in it. Syncfusion.SfGrid.UWP is one of them]
So, I am not able to provide a repro at this time.
My XAML looks a lot like this page: https://help.syncfusion.com/uwp/sfdatagrid/getting-started
Thanks,
Will
SIGN IN To post a reply.
5 Replies
GT
Gnanasownthari Thirugnanam
Syncfusion Team
November 21, 2017 12:58 PM UTC
Hi Will,
Please find the response for your queries,
|
Query 1 : I replaced references to the SF dlls at
C:\Program Files (x86)\Syncfusion\Essential Studio\15.4.0.17\Universal Windows\10.0\SDK\References\CommonConfiguration\neutral\Syncfusion.whatever
Now I can compile and run.
|
Based on your given referred location we found that you have referred the wrong Assembly location.
Please find the correct location for Assembly reference.
Assembly location: C:\Program Files (x86)\Syncfusion\Essential Studio\15.4.0.17\Assemblies for Universal Windows\10.0
|
|
Query 2 BTW, I tried creating a blank project with the SF template and selected Reference Type = Assemblies and then selected from Components, DataGrids. Upon pressing enter, I was informed that I had:
Missing Assemblies
Note:
The project may not compile properly because the following assemblies are missing from installed location. Do you want to continue?
[and it has a list box with about ten items in it. Syncfusion.SfGrid.UWP is one of them]
|
We are unable to reproduce the issue in our end. For your reference we have attached the video in below mentioned location.
|
Note: Please check at you end whether the Assemblies are referred properly in you project.
Please let us know if you need further assistance on this.
Regards,
Gnanasownthari T.
WA
Will Autio
November 21, 2017 05:29 PM UTC
Hi,
Attachment: Grid_Issues_653ffab5.zip
1) I tried to add dlls from the directory that you indicated. There are only .pri files there on my pc. I do not know what .pri files are, but VS 2017 did not allow me to add them to the references. For a view of the directory, please refer to the attached image (in the zip file) 1A Directory.png.
2) Thanks for the video. That is what I have been doing. However, I do not get a project created. Instead I get a big ugly message as stated previously. Please refer to the remaining images in the zip.
It makes me wonder if the install is not working right. I used syncfusionessentialuniversalwindows.exe which according to properties is version 15.4.0.17 and has a signing time of Friday, November 10, 2017 9:29:01 PM.
Thanks,
Will
Attachment: Grid_Issues_653ffab5.zip
MS
Manivannan Sundararajan
Syncfusion Team
November 23, 2017 12:57 PM UTC
Hi Will,
We are sorry for the inconvenience.
To check the reported missing assemblies from the install location, please follow the steps suggested in the below KB article link and send us the zip file which consists of complete Syncfusion Installer logs generated by our tool. It would be much helpful for us to analyze the reported issue.
http://www.syncfusion.com/kb/2331
Regards,
Manivannan S.
We are sorry for the inconvenience.
To check the reported missing assemblies from the install location, please follow the steps suggested in the below KB article link and send us the zip file which consists of complete Syncfusion Installer logs generated by our tool. It would be much helpful for us to analyze the reported issue.
http://www.syncfusion.com/kb/2331
Regards,
Manivannan S.
WA
Will Autio
November 23, 2017 04:26 PM UTC
MS
Manivannan Sundararajan
Syncfusion Team
November 24, 2017 12:03 PM UTC
Hi Will,
Thanks for sharing the log files.
After analyzing the log files, we came to know that the UWP assemblies are not shipped properly in your machine due to insufficient disk space. You require 3 GB free space in the drive in which you are installing the UWP platform setup and complete Syncfusion Essential Studio installation takes around 16 GB. So, please uninstall the already v15.4.0.17 UWP setup, free your disk space and then install the Syncfusion setup. Now, you can find the UWP assemblies from the below location.
Location:
C:\Program Files (x86)\Syncfusion\Essential Studio\15.4.0.17\Assemblies for Universal Windows\10.0
Regards,
Manivannan S.
Thanks for sharing the log files.
After analyzing the log files, we came to know that the UWP assemblies are not shipped properly in your machine due to insufficient disk space. You require 3 GB free space in the drive in which you are installing the UWP platform setup and complete Syncfusion Essential Studio installation takes around 16 GB. So, please uninstall the already v15.4.0.17 UWP setup, free your disk space and then install the Syncfusion setup. Now, you can find the UWP assemblies from the below location.
Location:
C:\Program Files (x86)\Syncfusion\Essential Studio\15.4.0.17\Assemblies for Universal Windows\10.0
Regards,
Manivannan S.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
WA Will Autio
- Nov 20, 2017 07:45 PM UTC
- Nov 24, 2017 12:03 PM UTC