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
close icon

my webapp can't find the path of the fileexplorer

Hi !

i have a problem here, so, I use the syncfusion Community, i dont know if this is a problem, so, when I debug the project in my localhost, dont show the path, and i got a popup with an "Error".

This is my master page

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="File.master.cs" Inherits="WebApplication1.Ventas.File" %>

<!DOCTYPE html>

<html lang="en">
<head runat="server">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><%: Page.Title %> - My ASP.NET Application</title>

    <asp:PlaceHolder runat="server">
        <%: Scripts.Render("~/bundles/modernizr") %>
    </asp:PlaceHolder>

    <webopt:bundlereference runat="server" path="~/Content/css" />
    <link rel='nofollow' href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />

  <%:Styles.Render("~/Content/bootstrap.min.css") %>
     <%:Styles.Render("~/Content/Site.css") %>
     <%:Styles.Render("~/Content/ej/web/Material/ej.web.all.min.css") %>
    <%:Styles.Render("~/Content/ej/web/Material/ej.reportdesigner.min.css") %>

     <!--[if lt IE 9]>
    <%: Scripts.Render("~/Scripts/jquery-1.11.3.min.js")%>
    <![endif]-->
    <!--[if gte IE 9]><!-->
    <%: Scripts.Render("~/Scripts/jquery-3.4.1.min.js")%>
    <!--<![endif]-->
    <%: Scripts.Render("~/Scripts/bootstrap.min.js")%>
    <%: Scripts.Render("~/Scripts/pivotgrid.datasource.js")%>
    <%: Scripts.Render("~/Scripts/jsrender.min.js")%>
    <%: Scripts.Render("~/Scripts/ej/ej.web.all.min.js")%>
    <%: Scripts.Render("~/Scripts/ej/ej.reportdesigner.min.js")%>
    <%: Scripts.Render("~/Scripts/ej/ej.webform.min.js")%>
    <%: Scripts.Render("~/Scripts/jsondatachart.js")%>
    <%: Scripts.Render("~/Scripts/sampleslist.js")%>
    <%: Scripts.Render("~/Scripts/properties.js")%>
   <%: Scripts.Render("~/Scripts/ZeroClipboard.js")%>
</head>
<body>
    <form runat="server">
        <asp:ScriptManager runat="server">
            
        </asp:ScriptManager>

        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" runat="server" rel='nofollow' href="~/">Application name</a>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li><a runat="server" rel='nofollow' href="~/">Home</a></li>
                        <li><a runat="server" rel='nofollow' href="~/About">About</a></li>
                        <li><a runat="server" rel='nofollow' href="~/Contact">Contact</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container body-content">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
            <hr />
            <footer>
                <p>&copy; <%: DateTime.Now.Year %> - My ASP.NET Application</p>
            </footer>
        </div>

    </form>
</body>
</html>

And this is my ASPX.

<%@ Page Title="" Language="C#" MasterPageFile="~/Ventas/File.Master" AutoEventWireup="true" CodeBehind="Filemanager.aspx.cs" Inherits="WebApplication1.Ventas.Formulario_web12" %>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <script src='<%= Page.ResolveClientUrl("~/Scripts/ej/i18n/ej.culture.en-US.min.js")%>' type="text/javascript"></script>
<script src='<%= Page.ResolveClientUrl("~/Scripts/ej/l10n/ej.localetexts.en-US.min.js")%>' type="text/javascript"></script>
<div id = "ControlRegion">
    <ej:DatePicker ID="Datepicker1" runat="server"></ej:DatePicker>
    <ej:FileExplorer ID="fileexplorer" runat="server" IsResponsive="true" Width="100%" AjaxAction="Filemanager.aspx/FileActionDefault" Path="~/Content/images/FileExplorer">
        <AjaxSettings>
            <Download Url="downloadFile.ashx{0}" />
            <Upload Url="uploadFiles.ashx{0}" />
        </AjaxSettings>
    </ej:FileExplorer>
</div>
</asp:Content>

I change the name of those, so i dont know if this is a problem.



5 Replies

AB Ashokkumar Balasubramanian Syncfusion Team August 28, 2019 09:46 AM UTC

Hi Eduardo, 
 
Good day to you. 
 
We have prepared a FileExplorer sample with the provided code in Asp.Net and the control is rendered fine. We are not clear on what error you receive in popup. Please ensure whether the correct path is provided for FileExplorer content as well as AjaxAction. Please refer to the following link for sample. 
 
 
Check the above sample and if the issue persists, kindly modify the above sample to replicate the issue else share us screenshot on the error which you get in your end along with product version so that we can proceed further. 
 
 
Please let us know, if you have any concern on this. 
 
Regards, 
Ashokkumar B. 



EM eduardo manuel leon cuya August 28, 2019 04:00 PM UTC

dont worry and thanks for the reply,

I give you a credential to see my error better.


User: eleon
Password: mGid2305@

So, please try to help me.






AB Ashokkumar Balasubramanian Syncfusion Team August 29, 2019 09:53 AM UTC

Hi Eduardo,  
 
Thanks for sharing us the website.  
 
We checked the response and preview tab received during the read request sent from FileExplorer AJAX action.  The network response is as shown below in your website. 
 
 
 
It seems the server which has the data to be displayed fails in Authentication (permission for reading the files may be denied) and hence the files are not shown. Please refer to the below given blogs to resolve the issue in your end. 
 
 
 
In our working sample provided earlier, the response data will be as shown below which is the correct format.  
 
 
 
Please check the above provided information’s and get back to us, if you require any further assistance on this. 
 
Regards, 
Ashokkumar B


EM eduardo manuel leon cuya August 29, 2019 03:35 PM UTC

thanks, this works now.

resolved !


AB Ashokkumar Balasubramanian Syncfusion Team August 30, 2019 05:39 AM UTC

Hi Eduardo, 
 
We are glad to hear that the problem has been resolved. Please let us know, if you need any further assistance. 
 
Regards, 
Ashokkumar B. 


Loader.
Live Chat Icon For mobile
Up arrow icon