View is not working only blank when creating FIleManager?

Hi Team

I would like to share my View.cshtml here, i have tried to use examples from the samples. I dont have any errors, but the issue is my View is not showing FileManager.


//FileOperation.cshtml


@{
    ViewBag.Title = "Year-Events";
}

@using Syncfusion.EJ2.FileManager;

<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" />
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>

<!-- Syncfusion Essential JS 2 Scripts -->
<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>
<link rel="stylesheet" rel='nofollow' href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ajax-unobtrusive/3.2.6/jquery.unobtrusive-ajax.js"/>
<div class="form-group row">
    <div class="control-section">
        @Html.EJS().FileManager("file").AjaxSettings(new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings
             {
                 Url = "/Home/FileOperations",
                 GetImageUrl = "/Home/GetImage",
                 UploadUrl = "/Home/Upload",
                 DownloadUrl = "/Home/Download"
}).Render()
    </div>
</div>
//_Layout.cshtml
 <link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" />
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>

    <!-- Syncfusion Essential JS 2 Scripts -->
    <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>

//Controller has those methods exactly same from the sample

What could be an issue here and no configuration on web.config. Please help mates im stuck here


7 Replies 1 reply marked as answer

MK Muthukrishnan Kandasamy Syncfusion Team October 23, 2020 11:05 AM UTC

 
Hi Gcobani, 
 
Thanks for contacting Syncfusion support. 
 
We have validated your reported problem in File Manager component. We were unable to reproduce your reported problem in our end, the file manager component renders properly without any issues. We have prepared sample for your convenience, which can be downloaded from the below link. 
 
 
 
 
 
If the issue still persists, please share the issue replicating sample or replicate the issue in the shared sample. It will be help us to provide you the prompt solution. 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Muthukrishnan K 



GC Gcobani November 4, 2020 12:54 PM UTC

Hi Mate

Please test my sample in your end and let me know if you experience same thread as me, zip file is here attached.

Attachment: Views_c1a449fc.zip


SP Sowmiya Padmanaban Syncfusion Team November 5, 2020 08:02 AM UTC

 
Hi Gcobani,  
 
We have checked your attached view files of your application. We found that, you have not added the required scripts and styles references for rendering EJ2 components in your Layout.cshtml file. This might be the root cause of your reported problem. 
 
Please, add the following code in your application to resolve your reported problem. 
 
<!DOCTYPE html> 
<html> 
<head> 
    <meta charset="utf-8" /> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>@ViewBag.Title - My ASP.NET Application</title> 
    <!-- Syncfusion Essential JS 2 Styles --> 
    <link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" /> 
 
    <!-- Syncfusion Essential JS 2 Scripts --> 
    <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script> 
    @Styles.Render("~/Content/css") 
    @Scripts.Render("~/bundles/modernizr") 
</head> 
<body> 
 
    @Scripts.Render("~/bundles/jquery") 
    @Scripts.Render("~/bundles/bootstrap") 
    @RenderSection("scripts", required: false) 
    <!-- Syncfusion Essential JS 2 ScriptManager --> 
    @Html.EJS().ScriptManager() 
</body> 
</html> 
 
Please, refer the following documentation to configure Syncfusion components in your ASP.NET MVC application, successfully. 
 
 
For your reference, we have prepared a sample with FileManager component.  
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer

GC Gcobani November 5, 2020 10:04 AM UTC

Hi Team

Thanks so much, one last issue the application works fine, but now there is an issue with licencing. How do i pass that in order for this to work? Meaning its a trial, i did donwload on nuget, syncfusion.licencing. Where do i improve that for not happening? Please advice me further, thanks.


KJ Kalap Johnson Peter Paulraj Syncfusion Team November 5, 2020 12:20 PM UTC

Hi Gcobani, 

You need to register the corresponding platform’s license key in your application. For example, if you are using Syncfusion.EJ2.MVC5 NuGet package from nuget.org or trial installer, you should generate and register the corresponding version ASP.NET MVC license key in your application to prevent trial water mark. 

Refer below the documentation for license key generation and registration. 



Also, our license keys are version and platform-specific. So, ensure that all the referenced Syncfusion assemblies\NuGet packages are on same version

Refer the following documentation link to know more about licensing. 

https://help.syncfusion.com/common/essential-studio/licensing/license-key    

Find below the knowledge base article to know about which version license key should use in application,

https://www.syncfusion.com/kb/8951/which-version-syncfusion-license-key-should-i-use-in-my-application  

Let us know, if you’ve any other queries. 

Regards, 
Kalap Johnson Peter P.


GC Gcobani November 5, 2020 08:59 PM UTC

Hi Thanks i managed to get rid of the expired trial, in future i believe must buy it in order to get the full licence than a trial.


KJ Kalap Johnson Peter Paulraj Syncfusion Team November 6, 2020 08:37 AM UTC

Hi Gcobani,

Welcome..!!!

We are happy that the issue resolved. Let us know if you need any assistance on this.

Regards,
Kalap Johnson Peter P.

Loader.
Up arrow icon