Hello,
the infrastructure guy on our side managed to solve the problem with the redirection server and we are now able to download Excel using the IDistributedCache.
Thanks and Regards Kirtee
Hello,
we figured out that the problem is actually with the direction server on the production environment.
The redirection is not able to read after the "?" in the url, for example: https://website/File/DownloadTempFile?fileType=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&fileToken=dd24ea6494374d4a8d5565e605eea86c&fileName=AuditLogs.xlsx
We are trying to look for a solution, but just in case you have any idea, please let us know.
Thanks and Regards
Hello, no we are not using Redis.
I have tried using IDistributedCache.
I haved added the following in the Startup.cs
services.AddDistributedSqlServerCache(options =>
{
options.ConnectionString = _appConfiguration["ConnectionStrings:Default"];
options.SchemaName = "dbo";
options.TableName = "CacheForTokens";
});
and have modified the TempFileCacheManager.cs as follows:
public class TempFileCacheManager : ITempFileCacheManager
{
private readonly IDistributedCache _cacheManager;
public TempFileCacheManager(IDistributedCache cacheManager)
{
_cacheManager = cacheManager;
}
public void SetFile(string token, byte[] content)
{
_cacheManager.Set(token, content);
}
public byte[] GetFile(string token)
{
return _cacheManager.Get(token) as byte[];
}
}
I see that the token and value is saved successfully in the table when I try to export to Excel,
but I am still getting the file not found error
Do you have any idea about what is missing to get this working?
Thanks and Regards
Hi, is there a way I can clear the cookie from the browser when the user is logged out on session timeout? Alternatively, what is the equivalent of Session.Abandon(); in ASP.Net Zero?
Thanks and Regards
Applying the code change mentioned at https://github.com/tmenier/Flurl/issues/495#issuecomment-579841595 solved the issue for me
thanks alper.I have implemented the answer proposed by christopheblin at https://github.com/tmenier/Flurl/issues/495 and the issue has been recsolved.
Regards Kirtee
Hi Maliming,
thank you. Can you please any link/documentation which you have on this.
Hello. I'm having the same issue with ASP.Net Zero version 8.1.0 with ASP.Net core MVC & JQuery. I have sent my app url and all details to [email protected] yesterday and is still waiting for a response. Please assist.
Thanks and Regards Kirtee
Hi. We managed to identify the issue. It sounds strange but the application was treating a page which we named as "EServices" as unauthorized. We renamed "EServices" to "Integrations" and this solved the problem! We are not sure if this is a problem with ASP.Net zero or our production environment with the SSL certificate.
Thanks for the assistance.
Regards Kirtee