Open ynnob opened 8 months ago
My first time using this library and I hit the same issue today. I'm using the latest version of everything. After creating the missing path the error goes away and the site becomes usable.
Strange note: No cache files are ever created there! So it's throwing an unrecoverable error that crashes the site for all users and then it's not even using the cache folder. I would not consider this exceptional. It needs to log the error and then have a graceful fallback to a different method. Especially when this folder isn't in use!
Hello!
We have a Blazor app running .NET 8 on a Windows Server published through Visual Studios IIS publish option.
We used WebOptimizer in our Program.cs and then started noticing that
After some digging in the Windows Error logs i saw several errors popping up for each of the failed files that the browser tried to download.
App.razor:
<link rel="stylesheet" href="/css/app.min.css" />
Example for app.min.css
This causes a chain reaction and prevents the download of all files.
The published Blazor page does not contain an \obj\WebOptimizerCache folder and WebOptimizer fails to create this folder.
FIX: Manually adding this folder solves all the problems but i wonder what is causing this because the IIS User has all the permissions required. If this is all expected behaviour the documentation should be updated and reflect that it is necessary to create this folder structure to use the WebOptimizer.