What is your product version? = API: v10.3.0 | Client: v10.3.0
What is your product type (Angular or MVC)? = Angular
What is product framework type (.net framework or .net core)? = .net core
What is ABP Framework version? = 6.3
We are facing issue while downloading any file, including default Export to Excel option. This is happening after we enable Redis Cache.
On local it is working fine but in the azure hosting environment the same is not working. We request you to guide us on this issue. Error is in "/File/DownloadTempFile" API
From the log files, got below error: ERROR 2021-05-17 13:37:19,647 [6 ] Mvc.ExceptionHandling.AbpExceptionFilter - Unable to find a constructor to use for type HelloNote.EMR.Storage.TempFileInfo. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'FileName', line 1, position 12.
Newtonsoft.Json.JsonSerializationException: Unable to find a constructor to use for type HelloNote.EMR.Storage.TempFileInfo. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'FileName', line 1, position 12.
2 Answer(s)
-
0
This is bit urgent. It would be great if someone can help us in this issue..
-
1
Hi @Hellonote
Can you please update your TempFileInfo according to that commit https://github.com/aspnetzero/aspnet-zero-core/commit/3bf5382bc5108ed538d6fbbaa8133b16ae151380