Erreur Javascript when using the FileManager control in Client side with web api

Hi,

I use the control FileManager in application Blazor Client side. I got the error:
Cannot read property 'code' of undefined
    at eu (constants.js:93)
    at e.onSuccess (constants.js:93)
    at e.successHandler (constants.js:93)
    at e.stateChange (constants.js:93)
    at XMLHttpRequest.t.httpRequest.onreadystatechange (constants.js:93)

The ressources:
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.51/material.css" rel="stylesheet" />
<script src="https://cdn.syncfusion.com/ej2/17.4.51/dist/ej2.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/17.4.51/dist/ejs.interop.min.js"></script>
Is added in index.html.

The IdentityServer is activated in projects.

if I use the azure file system provider, the file manager work without problems.

In attachement, the page .razor and the controller.

Thank you.


Attachment: FileManager_cb7ee143.7z

4 Replies

AI aitlahmid February 28, 2020 09:18 AM UTC

Hi,
The same error in application Blazor Server side.

Thanks


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team February 28, 2020 10:27 AM UTC

Hi Aitlahmid, 
 
Greetings from Syncfusion support. 
  
We have looked into your reported problem. For your information, we cannot add controller part in client application (web assembly), but we can add the controller part in the hosted (web assembly) application in its server-side application part.  
 
We have looked into your reported error and attached files. We suspect that the reported error might have occurred due to ajax call back failure from File Manager due to improper controller action definations. 
 
We have prepared a blazor hosted application (web assembly) with File Manager component for your reference. Please, check out the sample and let us know whether your reported resolved or please, replicate your reported issue in the following sample. It will help us to validate and provide prompt solution for your problem. 
 
Sample (Hosted Application): 
 
 
Sample (Server Application):  
 
 
 
Please, let us know if you need any further assistance. 
 
Regards, 
Shameer Ali Baig S. 



AI aitlahmid March 2, 2020 08:59 AM UTC

Thank you for your response.

Unfortunatly, the proposed solution does not work

The security implemented in my solution can be the cause of the problem? Help please.

Thanks.


SP Sowmiya Padmanaban Syncfusion Team March 3, 2020 09:01 AM UTC

HI Aitlahmid,  

We have created a incident 267909 under your direct trac account. Please follow this incident for future update. 
  
Regards,  
Sowmiya.P 


Loader.
Up arrow icon