@ismcagdas - When I tried to enter the issue, it showed me this one. Does that fix apply to my version and do you still want me to enter a new issue?
@ukocabicak - I solved the error on the actions and button dropdowns by replacing the "_bundles" folder with my local desktop copy. I'm still living with the UI customization error, that's why this thread is still open.
@ismcagdas - I dont see how removing the empty files will resolve my original issue with the mime/404 error?
@ismcagdas - Thanks! Your last post was helpful. I ran my local environment with "staging" settings file and the error occurred on those two files. However, source .LESS and .CSS files under theme2 and theme8 are empty. So how can I create .min versions of those files?
These questions are just to seek guidance on best practice for the items below. I have the read the docs and still a bit confused as to the best location for such things.
In multiple app services I have code that is repeated for a "shared" entity. Naturally trying to follow the DRY principle I would like to consolidate this code to a single location.
In multiple MVC controllers I have code that is repeated for a "shared" entity. Naturally trying to follow the DRY principle I would like to consolidate this code to a single location.
@ismcagdas - The LESS and CSS files for some of the themes are completely empty. I already have the web compiler installed. Can you confirm if some of the metronic themes have empty LESS & CSS files or is my solution missing something? If something is missing, then how is it that the ALL of the theme UI changes work just fine in my local development environment. The issues only appear on the hosted/deployed app.
Check the YourAppName.Web.Mvc.runtimeconfig.json file and ensure the "GC" setting is false. Example below. "System.GC.Server": false
This was the issue for my app after my deployment to my windows hosting server. I dont use Azure though.
Yes I have that installed from a long time ago.
One additional note, in my source code the "theme2" LESS and CSS files are both empty. This is how its been since I downloaded the solution from AZN. A couple of the other themes are like that too, but all themes work locally on my desktop without any issues.
@ismcagdas - I just checked my solution and I only see the files shown in the image below, they are CSS and LESS files. The LESS files dont provide the option to "Bundle and Minify", when I right click them.
Do I need to manually "Bundle and Minify" the CSS files? They are already part of the bundle, as shown below.
{
"outputFileName": "wwwroot/view-resources/Areas/MyApp/Views/_Bundles/common-styles.css",
"inputFiles": [
"wwwroot/Common/Styles/**/*.css",
"wwwroot/fonts/fonts-poppins.css",
"wwwroot/fonts/fonts-roboto.css",
"!wwwroot/Common/Styles/**/*.min.css",
"!wwwroot/Common/Styles/Themes/**/*.css",
"!wwwroot/Common/Styles/abp-zero-template-rtl.css",
"!wwwroot/Common/Styles/metronic-customize-top-menu*.css"
]
},
@ismcagdas - This issue is still open and recurring issue on my deployed application. Is there any solution to this issue?