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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Azure file provider doesn't work with .NET Core 2.2

Thread ID:

Created:

Updated:

Platform:

Replies:

149597 Dec 2,2019 07:52 PM UTC Dec 23,2019 11:34 AM UTC Angular - EJ 2 5
loading
Tags: FileManager
Brian Crawford
Asked On December 2, 2019 07:52 PM UTC

Hi, I'm using your Syncfusion.EJ2.FileManager.AzureFileProvider.AspNet.Core project with the file manager component and I'm trying to integrate it into our existing .NET Core 2.2 api.  It seems as though it is not compatible with .Net Core 2.2.  I've tried changing the version of the Syncfusion.EJ2.AspNet.Core dependency but I couldn't find any version that worked.  I get a 502.3 error when trying to upload a file.  File operations works and Download works, but not Upload.  

Keerthana Rajendran [Syncfusion]
Replied On December 3, 2019 12:32 PM UTC

Hi Brian, 
 
Good day to you,  
 
We have checked your reported query on upload issue for file manager component. This issue occurs due to framework limitations, since it will be working fine in .NET Core 2.1 and recent .NET Core3.0 versions. However, we will consider this as a bug from our end. This bug fix will be included in our Volume 4 SP1 Release which is expected to be released at the end of January. Until then, track the below feedback link for bug status. 
 
 
Please let us know, if you have any concerns. 
 
Regards, 
Keerthana. 
 


Keerthana Rajendran [Syncfusion]
Replied On December 17, 2019 10:54 AM UTC

Hi Brian, 
 
Currently we are working on the reported issue and we would like to let you know that circular reference exception occurs only with .NET core 2.2 version. As per our previous update this issue raised in core 2.2 version alone. Also, Microsoft planned to announce the EOL for core 2.2 (https://dotnet.microsoft.com/platform/support/policy/dotnet-core) version on upcoming 23rd Dec, 2019. We suggest you to upgrade .NET core version to 3.0 to resolve this issue. Else if you want to continue in this version, we can provide you a custom patch for this issue based on your confirmation. 
 
Regards, 
Keerthana.  


Brian Crawford
Replied On December 17, 2019 03:08 PM UTC

Hi, we couldn't wait for a solution so I had to patch it myself, but yes, please send your patch so that I can see if there are any improvements to what I've done.  Thanks!

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On December 19, 2019 08:43 AM UTC

Hi Brian,
 
Thanks for your confirmation.
 
As promised in our previous update. We will fix the reported issue and provided patch for the fix in two business days on December 23, 2019.
 
We appreciate your patience until then.
 
Regards,
Shameer Ali Baig S.


Sowmiya Padmanaban [Syncfusion]
Replied On December 23, 2019 11:34 AM UTC

Hi Brian, 
 
We have fixed the upload issue in Azure File provider. To overcome this issue, you can declare a local class for FileManagerDirectoryParams and use the class in all the operations. Refer the below code snippet. 
 
public class FileManagerDirectoryParams 
    { 
        public string Path { get; set; } 
        public string Action { get; set; } 
        public string NewName { get; set; } 
        public string[] Names { get; set; } 
        public string TargetPath { get; set; } 
        public string Name { get; set; } 
        public long Size { get; set; } 
        public string PreviousName { get; set; } 
        public DateTime DateModified { get; set; } 
        public DateTime DateCreated { get; set; } 
        public bool HasChild { get; set; } 
        public bool IsFile { get; set; } 
        public string Type { get; set; } 
        public string Id { get; set; } 
        public string FilterPath { get; set; } 
        public string FilterId { get; set; } 
        public IList<IFormFile> UploadFiles { get; set; } 
        public bool CaseSensitive { get; set; } 
        public string SearchString { get; set; } 
        public bool ShowHiddenItems { get; set; } 
 
        public string IconClass { get; set; } 
 
        public string NodeId { get; set; } 
 
        public string ParentID { get; set; } 
 
        public bool Selected { get; set; } 
 
        public string Icon { get; set; } 
 
        public string[] RenameFiles { get; set; } 
        public FileManagerDirectoryContent[] Data { get; set; } 
 
        public FileManagerDirectoryContent TargetData { get; set; } 
    } 
     public object AzureFileoperations([FromBody] FileManagerDirectoryParams args) 
        { 
         } 
    public ActionResult AzureUpload(FileManagerDirectoryParams args) 
        { 
        } 
    public IActionResult AzureGetImage(FileManagerDirectoryParams args) 
        { 
        } 
 
We have prepared a local sample for your reference to include this patch.  
 
 
Note: Run the service and refer the localhost URL in file manager sample. 
 
Please let us know, if you have any concerns. 
  
Regards, 
Sowmiya.P 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon