@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?
@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?
I tested the app today and the error happened again. I pulled the logs from the site as you suggested. The entire log file is too large to post. So I have pulled out the snippet of the log file (below) at the time the MIME error occurs and it throws the 404 error in the browser console.
INFO 2018-12-27 08:19:45,779 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://tenant1.mydomain.com/Profile/GetProfilePicture?t=636814955848306565
INFO 2018-12-27 08:19:45,784 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "GetProfilePicture", controller = "Profile", area = ""}. Executing action EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc)
INFO 2018-12-27 08:19:45,784 [10 ] uthorization.DefaultAuthorizationService - Authorization was successful.
INFO 2018-12-27 08:19:45,785 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc) - Validation state: Valid
INFO 2018-12-27 08:19:45,788 [17 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.VirtualFileResult in 2.56ms.
INFO 2018-12-27 08:19:45,789 [17 ] Infrastructure.VirtualFileResultExecutor - Executing Microsoft.AspNetCore.Mvc.VirtualFileResult, sending file 'Common\Images\default-profile-picture.png' with download name '' ...
INFO 2018-12-27 08:19:45,790 [17 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc) in 5.5901ms
INFO 2018-12-27 08:19:45,790 [17 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 10.8957ms 200 image/png
INFO 2018-12-27 08:19:45,928 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://tenant1.mydomain.com/Error?statusCode=404
INFO 2018-12-27 08:19:45,933 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Error", area = ""}. Executing action EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc)
INFO 2018-12-27 08:19:45,933 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc) with arguments (404) - Validation state: Valid
INFO 2018-12-27 08:19:45,934 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.0138ms.
INFO 2018-12-27 08:19:45,934 [10 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Error404.
INFO 2018-12-27 08:19:45,935 [10 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executed ViewResult - view Error404 executed in 1.7207ms.
INFO 2018-12-27 08:19:45,935 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc) in 2.4587ms
INFO 2018-12-27 08:19:45,935 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 7.7351ms 200 text/html; charset=utf-8
INFO 2018-12-27 08:19:45,973 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://tenant1.mydomain.com.com/Profile/GetProfilePicture?t=636814955848306670
INFO 2018-12-27 08:19:45,978 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "GetProfilePicture", controller = "Profile", area = ""}. Executing action EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc)
INFO 2018-12-27 08:19:45,978 [21 ] uthorization.DefaultAuthorizationService - Authorization was successful.
INFO 2018-12-27 08:19:45,979 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc) - Validation state: Valid
INFO 2018-12-27 08:19:45,980 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://tenant1.mydomain.com.com/AbpServiceProxies/GetAll?v=636814954953712630
INFO 2018-12-27 08:19:45,982 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.VirtualFileResult in 2.5307ms.
INFO 2018-12-27 08:19:45,983 [21 ] Infrastructure.VirtualFileResultExecutor - Executing Microsoft.AspNetCore.Mvc.VirtualFileResult, sending file 'Common\Images\default-profile-picture.png' with download name '' ...
INFO 2018-12-27 08:19:45,983 [17 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action EXLNT.MyApp.Web.Controllers.ProfileController.GetProfilePicture (EXLNT.MyApp.Web.Mvc) in 5.6445ms
INFO 2018-12-27 08:19:45,984 [17 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 10.6929ms 200 image/png
INFO 2018-12-27 08:19:45,985 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "GetAll", controller = "AbpServiceProxies", area = ""}. Executing action Abp.AspNetCore.Mvc.Proxying.AbpServiceProxiesController.GetAll (Abp.AspNetCore)
INFO 2018-12-27 08:19:45,985 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Proxying.AbpServiceProxiesController.GetAll (Abp.AspNetCore) with arguments (Abp.AspNetCore.Mvc.Proxying.ApiProxyGenerationModel) - Validation state: Valid
INFO 2018-12-27 08:19:45,993 [22 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Abp.AspNetCore.Mvc.Proxying.AbpServiceProxiesController.GetAll (Abp.AspNetCore), returned result Microsoft.AspNetCore.Mvc.ContentResult in 7.0616ms.
INFO 2018-12-27 08:19:45,993 [22 ] Mvc.Infrastructure.ContentResultExecutor - Executing ContentResult with HTTP Response ContentType of application/x-javascript
INFO 2018-12-27 08:19:45,993 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Proxying.AbpServiceProxiesController.GetAll (Abp.AspNetCore) in 8.481ms
INFO 2018-12-27 08:19:45,993 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 12.7545ms 200 application/x-javascript
INFO 2018-12-27 08:19:46,027 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://tenant1.mydomain.com.com/Error?statusCode=404
INFO 2018-12-27 08:19:46,033 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {action = "Index", controller = "Error", area = ""}. Executing action EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc)
INFO 2018-12-27 08:19:46,034 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc) with arguments (404) - Validation state: Valid
INFO 2018-12-27 08:19:46,034 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc), returned result Microsoft.AspNetCore.Mvc.ViewResult in 0.0115ms.
INFO 2018-12-27 08:19:46,034 [10 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executing ViewResult, running view Error404.
INFO 2018-12-27 08:19:46,036 [10 ] Core.Mvc.ViewFeatures.ViewResultExecutor - Executed ViewResult - view Error404 executed in 1.6454ms.
INFO 2018-12-27 08:19:46,036 [10 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action EXLNT.MyApp.Web.Controllers.ErrorController.Index (EXLNT.MyApp.Web.Mvc) in 2.5635ms
INFO 2018-12-27 08:19:46,036 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 8.8294ms 200 text/html; charset=utf-8