Error: Type syncfusion:SfPicker not found

I have a Synfusion Community License and I have installed and licensed the Syncfusion Xamarin Control panel on my computer. I installed the Syncfusion.Xamarin.SFPicker nuget package in Visual Studio from http://nuget.syncfusion.com/

However, I get this error only when building the project. Intellisense in VS finds the control perfectly but the project won't build. 

Type syncfusion:SfPicker not found in xmlns clr- namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms

I believe the problem is with licensing so I added this line while following the setup docs:

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MyLicenseKey");

Unfortunately, this made no difference. I also found this thread but the solutions suggested didn't work. 



9 Replies

MU Muhammad August 15, 2018 04:08 PM UTC

I solved the problem, it seems that I need to install the same version of Syncfusion Xamarin Control Panel as the Nuget packages I use. I installed the latest update (same version as the nuget) and my application compiled!

That didn't work. :(


PA Paul Anderson S Syncfusion Team August 16, 2018 04:26 AM UTC

Hi Muhammad, 
 
Greetings from Syncfusion. 
 
We have created a simple sample with our latest NuGet version for SfPicker control and please have the control from the below link. 
 
 
The error reported seems to be NuGet package conflict. Please clean the project and also delete all the packages of Syncfusion in “C:\Users\$UserName\.nuget\packages” and while doing this close all the VS. 
 
Please let us know if it helps you or still you are having trouble in deploying the application. 
 
Regards, 
Paul Anderson 



MU Muhammad August 16, 2018 09:12 AM UTC

No, this did not solve the problem and I am still getting the same error. 



PA Paul Anderson S Syncfusion Team August 16, 2018 09:25 AM UTC

Hi Muhammad, 
  
We couldn't reproduce the reported issue with SfPicker at our end. Can you please share the below requested which will be helpful to analyze the issue further. 
  
  
1) Are you getting the same error in our sample provided in last update. 
2) Have you deleted all the packages in .nuget\packages folder 
3) Is it possible to provide a replication sample 
  
Regards, 
Paul Anderson 



MU Muhammad August 16, 2018 02:34 PM UTC

1) The sample provided compiled and deployed (and ran) without any errors. 
2) I deleted all the syncfusion nuget packages and they were downloaded again when I rebuilt the solution. 
3) I tried to reproduce the error, but the new project compiled. (At first intellisense could not find the picker but after a restart it did). It seems that this issue is unique to that solution. 


MU Muhammad August 16, 2018 03:56 PM UTC

The new solution I made to test the SfPicker only started working after this popup showed saying "Adding toolbox items from assembly '~very long path(see pic)~' "



Attachment: Screenshot_b06499c8.zip

My app only throws the error (while building) when I reference the picker. The app works perfectly when i only include and do not use the nuget. 


PA Paul Anderson S Syncfusion Team August 17, 2018 11:41 AM UTC

Hi Muhammad, 
 
We have created incident to discuss in detail for the issue faced. We will assist you through incident under your Direct Trac account. 
Our Direct Trac support system can be accessed from the following link: 
                               
 
Regards, 
Paul Anderson 



MU Muhammad August 18, 2018 09:41 AM UTC

My solution now compiles and runs. 

The problem was with the namespace I copy and pasted from the docs. My IDE reformatted the code and added a space in the xaml namespace. 

"clr- namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms"
      ^
___|

After changing that it finally worked.


PA Paul Anderson S Syncfusion Team August 19, 2018 09:38 AM UTC

HI Muhammad, 
  
Thanks for the update. 
  
We are glad that the issue has been resolved. 
  
Regards, 
Paul Anderson 


Loader.
Up arrow icon