network error

good morning,

i'm writing an vb.net mvc5 web application and i tryed to use fileManager component.

i receive ever the same error: error network failed to send on xmlhttpRequest.
failed to load "my path"

my code snippet on razor
 <!--  Filemanager element declaration -->
                @code
                    Dim hostUrl As String
                    hostUrl = "https://localhost:44367/" + "documentazione"

                    'url: hostUrl + 'api / FileManager / FileOperations',
                    'getImageUrl: hostUrl + 'api / FileManager / GetImage',
                    'uploadUrl: hostUrl + 'api / FileManager / Upload',
                    'downloadUrl: hostUrl + 'api / FileManager / Download'
                    '          },
                    '     Visualizza dettagli'
                    ' });
                    'fileObject.appendTo( '# filemanager');





                    Dim ajs As New FileManager.FileManagerAjaxSettings
                    ajs.Url = "~/DOCUMENTAZIONE/" + Session("CustomerSystemId") + "/polizze/" + Request.QueryString("idPolizza")
                    ajs.Url = hostUrl ' + "DOCUMENTAZIONE/" + Session("CustomerSystemId") + "/polizze/"
                End Code

                @Html.EJS().FileManager("fileManager").AjaxSettings(ajs).Path(ajs.Url).Render()



                <!-- end of filemanager element-->


can anyone help me ?


1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team July 14, 2020 10:41 AM UTC

Hi Mino,  
   
Greetings from Syncfusion support.  
   
We have checked your reported query. Unfortunately, EJ2 components does not have support with VB.NET in ASP.NET MVC framework. we can achieve your requirement by rendering our EJ2 JavaScript components in ASP.NET MVC application with VB.   
 
Refer the below code snippet. 
 
<div id="filemanager"></div> 
<script> 
    var hostUrl = 'http://localhost:57662/'; 
    // inject feature modules of the file manager 
    ej.filemanager.FileManager.Inject(ej.filemanager.DetailsView,ej.filemanager.Toolbar,ej.filemanager.NavigationPane); 
    // initialize File Manager componentej.filemanager.NavigationPane); 
    var filemanagerInstance = new ej.filemanager.FileManager({ 
       ajaxSettings: { 
            url: hostUrl + 'FileManager/FileOperations', 
            getImageUrl: hostUrl + 'FileManager/GetImage', 
            uploadUrl: hostUrl + 'FileManager/Upload', 
            downloadUrl: hostUrl + 'FileManager/Download' 
        } 
    }); 
    // render initialized File Manager 
    filemanagerInstance.appendTo('#filemanager'); 
</script> 
 
  
We have prepared a simple sample using the above explained solution. Refer the sample link below.   
  
 
 
Note : Run the service and refer the local host URL in FileManager sample. 
  
Please let us know, if you need any further assistance.  
  
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon