Getting invalid argument error on Azure

Hello, I'm getting the following error from my app.



Also if I get a false upload successfully message if I use the file uploader component, but the file never goes to the server.



My app is hosted in MS Azure. I do not get this error if I run the application from my local host. What can I do now?

8 Replies

IL Indhumathy Loganathan Syncfusion Team May 31, 2021 02:01 PM UTC

Hi Mahmudul, 
 
Greetings from Syncfusion support. 
 
Query1: Error in File Manager 

We have validated your reported query. We are preparing the sample similar to your scenario with the shared details. We need some additional time to prepare and ensure that sample in Azure. We will provide you further details on 4th June, 2021. However, we request the below details from your end.
 
 
1.      Share the File Manager component related code snippets. 
2.      Share the Service provider used in your application. 
3.      Package version used in your sample. 
4.      If possible, share us a live hosted link. 
 
Query 2: False upload success message in Uploader 
 
We have prepared a Uploader sample in MVC, but in order to replicate the issue in our end we need some additional details. 
 
1.      Whether you rendered Uploader inside RTE component or any other component. 
2.      Uploader component related Code snippets. 
3.      If possible share us a simple issue replicated sample or reproduce the issue in the shared sample. 
 
 
These details would help us to assist you promptly. 
 
Regards, 
Indhumathy L


MH Mahmudul Hasan May 31, 2021 08:29 PM UTC

Have a look at this gist -> Gist related to https://www.syncfusion.com/forums/165896/getting-invalid-argument-error-on-azure (github.com)

This gist contains every code related to this component and I thought it would be helpful. Also, I've added some comment in the AddBlog.cshtml file, the <ejs-multiselect></ejs-multiselect> component is also not working properly. It's returning a null value even if I select items.

Note: The file manager and the file uploader component work perfectly in my local machine but do not work on Azure. The Multiselect component works nowhere.


IL Indhumathy Loganathan Syncfusion Team June 1, 2021 02:26 PM UTC

Hi Mahmudul,  
  
Thanks for the details. 
 
We would like to let you know that we have hosted our sample browser in the Azure cloud storage. The MultiSelect FOR control and Uploader components were working fine both in the local and Azure. Please find the working demo from the below links.  
 
 
 
Also, we suspect that the issue might occur due to mapping of the controller name mismatch with the URL settings (IoController is named as Io in the URL but its named as IO). 
 
Kindly check the above shared sample and if the issue persists, share us the hosted azure URL for the reported issue which will be really helpful to investigate the issue further from our end. 
 
Regards, 
Indhumathy L 



MH Mahmudul Hasan June 2, 2021 06:19 PM UTC

Hello, please check this URL - Not Working Demo - MahmudX




Use MS Edge to get a better experience. 


MH Mahmudul Hasan June 3, 2021 12:52 AM UTC

Here is the multi select demo - Multi Select Not Working Demo - MahmudX

Please have a look.


IL Indhumathy Loganathan Syncfusion Team June 3, 2021 04:15 PM UTC

Hi Mahmudul, 
 
Thanks for the details. 
 
We have checked the shared Azure hosted link and code. Based on the details, we suspect that this issue might occur when the server-side action methods are not accessible from the hosted site. We suggest you to ensure this once in your end. As mentioned earlier, we need additional time to validate our sample in Azure. We will update you further details related to RTE File browser on 4th June, 2021 as promised earlier. 
 
Please find the details below for the query related to MultiSelect component. 
 
If the MultiSelect component is inside the form, when submitted, the component will be re-render and the value will be lost. So, in the form POST action, we need to assign the data source and value to the component. 
 
So, we suggest you to assign the value in the form POST action to the MultiSelect component as mentioned in the below code example.  
 
  Countries model = new Countries();  
        public ActionResult Index()  
        {  
            ViewBag.data = new Countries().CountriesList();  
            model.Values = new string[] { "Cameroon" };  
            return View(model);  
        }  
  
        [HttpPost 
        public ActionResult Index(Countries model 
        {  
            ViewBag.data = new Countries().CountriesList();  
            model.Values = model.Values;  
            return View(model);  
        }  
 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Indhumathy L 



MH Mahmudul Hasan June 3, 2021 05:05 PM UTC

I think you've misunderstood me. When I post the request, the list of items doesn't travel with it. You can see the screenshot on the page I've provided. There you will see the list count is zero. I want to receive the selected objects and do something with them. I don't want to show them inside my form after a post request has been made. 
Thank you.


KR Keerthana Rajendran Syncfusion Team June 4, 2021 01:08 PM UTC

Hi Mahmudul,  
 
We have created separate incidents under your Direct-Trac account for corresponding components(MultiSelect and File Manager). We request you to follow up with those incidents for further technical assistance.  
 
Regards, 
Keerthana.  


Loader.
Up arrow icon