System.ArgumentException when the text is empty.

I'm trying to use the EditControl (WPF)... I have downloaded a sample of code: http://www.syncfusion.com/downloads/support/forum/130235/ze/EditControl_JSON_Sample1186676147.zip

But when I remove the content and then I type something, a System.ArgumentException occurs.

I'm using Syncfusion WPF 19.9.0.43

Do you know how to avoid this exception ?


4 Replies

TB Thirupathi Bala Krishnan Syncfusion Team November 8, 2021 07:29 AM UTC

Hi David, 
 
Thanks for contacting Syncfusion support. 
            
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “ArgumentException throws when edit the text in EditControl”. We’ll provide the patch file for the reported issue on 15th November, 2021.  
            
You can track the status of this defect using the following feedback link: 
 
If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal. 
              
Please let us know if you need any further assistance. 
         
Regards, 
Thirupathi B. 



TB Thirupathi Bala Krishnan Syncfusion Team November 15, 2021 02:04 PM UTC

Hi David, 


Thanks for your patience.
  
  
We have fixed the reported issue - “ArgumentException throws when edit the text in EditControl”. Please find the patch file from the following location:     

V19.3.0.43 
Recommended approach – exe will perform automatic configuration                  
Please find the patch setup here:                                        
                    
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                   
Please find the patch assemblies alone from:                   
                
Please find the Nugets from the below location:                  
                 
              
NOTE:        
You can change how you receive bug fixes by navigating to the following link and updating your preferences.       
                
Disclaimer:                                 
Please note that we have created this patch for the version 19.3.0.43 specifically to resolve the issues reported in this forum #170192. If you have received other patches for the same version for other products. This fix will be included in our Volume 4 release which will be available in December 2021.    
  
Please let us know if you need any further assistance.  
  
Regards,
Thirupathi B.
 
 
 
 



LE Lee December 20, 2021 12:09 AM UTC

I'm having a similar or possibly the same error in the community edition (19.3.0.43).  I delete text, and start to type something and the application crashes, I get: 

System.ArgumentException

  HResult=0x80070057

  Message=Empty name is not legal. (Parameter 'oldValue')


It is a very simple application that generates some XML data that I need to edit.  If I replace:

<syncfusion:EditControl Text="{Binding Path=XmlData}" BorderThickness="1" DocumentLanguage="XML" Grid.Row="1" FontSize="14" TextChanged="EditControl_TextChanged"/>

with 

<TextBox Text="{Binding Path=XmlData}" Grid.Row="1" FontSize="14" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="TextBox_TextChanged"/>


I don't have any issues, but it is nice to have the syntax highlighting. 


Are there any plans to correct this issue for the community version?


Thanks,

Lee Parker


 



TB Thirupathi Bala Krishnan Syncfusion Team December 20, 2021 09:01 AM UTC

Hi Lee Parker,  
   
We have already fixed the reported issue - “ArgumentException throws when edit the text in EditControl” in our end. We have now integrated the code changes into your reported version 19.3.0.43. 
 
Please find the patch file from the following location:      

V19.3.0.43
 
Recommended approach – exe will perform automatic configuration                   
Please find the patch setup here:                                         
                     
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                    
Please find the patch assemblies alone from:                    
                 
Please find the Nugets from the below location:                   
                  
 
NOTE:         
You can change how you receive bug fixes by navigating to the following link and updating your preferences.        
                 
Disclaimer:                                  
Please note that we have created this patch for the version 19.3.0.43 specifically to resolve the issues reported in this forum #170192. If you have received other patches for the same version for other products. This fix will be included in our Volume 4 SP1 release which will be available in January 2022. 
   
Please let us know if you need any further assistance.   
   
Regards,
Thirupathi B.
 


Loader.
Up arrow icon