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

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

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.  

5 Replies

KR Keerthana Rajendran Syncfusion Team 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. 
 



KR Keerthana Rajendran Syncfusion Team 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.  



BC Brian Crawford 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!


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team 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.



SP Sowmiya Padmanaban Syncfusion Team 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 


Loader.
Up arrow icon