When viewing a PDF that contains an image, Aspose.Cells.GridWeb throws the following exception if MainWeb.SessionStorePath
has been set to something other than the default.
System.IO.FileNotFoundException: Could not find file 'D:\home\site\wwwroot\acwcache\03429b89-892e-b799-f6d8-253eaa47a82d'.
at System.IO.FileSystem.CreateDirectory(string fullPath, byte[] securityDescriptor)
at System.IO.Directory.CreateDirectory(string path)
at .(string , bool , , string )
at Aspose.Cells.GridWeb.MainWeb.()
at Aspose.Cells.GridWeb.MainWeb. ()
at Aspose.Cells.GridWeb.MainWeb.OnPreRender()
at Aspose.Cells.GridWeb.MainWeb.(bool )
at Aspose.Cells.GridWeb.GridWeb2TagHelper.Process(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.TagHelpers.TagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.RunAsync(TagHelperExecutionContext executionContext)
If SessionStorePath
is left at the default value, the error goes away.
Test Environment
- Azure App Service (Windows)
- ASP.NET Core 5
- .NET 5
- The problem exists for both version 21.09.0 from NuGet.org and the development build that was given to me in this thread.