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. Image for the cookie policy date

System.ArgumentNullException: Value cannot be null.

Hello,

I am trying to run an iOS Application using the DataGrid Control, however I am getting the following error:

System.ArgumentNullException: Value cannot be null.
Parameter name: method

Also, I am getting the same error with the downloaded example in the DataGrid Tutorial (GettingStarted Project)

Full Output.


Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/Xamarin.iOS.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/System.dll
Thread started:  #2
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/DCSInventoryIOS.exe
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/Syncfusion.SfDataGrid.iOS.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/System.Xml.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/Syncfusion.Linq.iOS.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/System.Core.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/Mono.Dynamic.Interpreter.dll [External]
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/Syncfusion.GridCommon.Portable.dll
Loaded assembly: /Users/renatowong/Library/Developer/CoreSimulator/Devices/964081B9-6963-4787-885A-8C5259FE56B6/data/Containers/Bundle/Application/2894A26D-2A1C-4656-A59F-E4B7EA34E3F4/DCSInventoryIOS.app/System.Web.Services.dll
Unhandled Exception:

System.ArgumentNullException: Value cannot be null.
Parameter name: method


Thank you!

3 Replies

DS Divakar Subramaniam Syncfusion Team January 9, 2017 09:13 AM UTC

Hi Renato, 
 
 
Thanks for contacting Syncfusion Support. 
 
 
We have checked your query and we were not able to reproduce the reported issue on our side. Also, the sample we have provided in our GettingStarted section works fine on our side. Please ensure that whether you have attached all the assemblies mentioned in the below link in your project. 
 
 
 
Also, check your sample by setting LinkerBehavior as “Don’t Link” or “Link SDK assemblies only”. 
 
   
 
 
We have attached a working sample(GettingStarted sample) for your reference and you can download the same from the below link. 
 
 
 
If the issue still persists, then please do revert us with modified sample reproducing the issue which will help us to serve you better. 
             
 
Regards, 
Divakar. 
 



RW Renato Wong January 9, 2017 04:10 PM UTC

Thank you very much for the response.

That was my problem, I had the link behavior property to Link all assemblies, changing it to Link SDK assemblies only solve the problem and I was able to run my application.

Thanks for the help!


DS Divakar Subramaniam Syncfusion Team January 10, 2017 03:59 AM UTC

Hi Renato, 
 
 
Thanks for the update. Please let us know if you need any other assistance from us. 
 
 
Regards, 
Divakar. 


Loader.
Up arrow icon