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
Ok, amazingly this morning, without me making any changes, the UI changes are working without any errors at all! This issue is resolved for today. I will reopen, if it occurs again.
No I do not get any errors on that command.
I have implemented SendGrid for emails into my AZN V6.3 solution. I am storing my SendGrid API key value in the SMTP settings. In the host settings app service when the password value is saved, it uses the encrypt code shown below.
await SettingManager.ChangeSettingForApplicationAsync(EmailSettingNames.Smtp.Password, SimpleStringCipher.Instance.Encrypt(settings.SmtpPassword))
So naturally when I try to retrieve this password for my SendGrid send email method, I use decrypt code, shown below.
var apikey = await _settingManager.GetSettingValueForApplicationAsync(SimpleStringCipher.Instance.Decrypt(EmailSettingNames.Smtp.Password));
However when this code executes, it throws this error: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
The SendGrid API key does contain a .
and _
is 69 characters long.
I did find some solutions on stackoverflow. However I cannot apply the "replace" option here, as the password is generated and provided by SendGrid.
Do I have any other options to be able to decrypt this type of password with AZN code? For now, I have just hard-coded the API key.
Yes I have the same problem. I responded on that thread.
@ismcagdas - I'm getting just mime error from what I can see I don't see any fontawesome related error I'm using the. Net core Jquery MVC template.
This problem is now happening on my desktop on my "master" branch repo code. I do all my work on my "development" fork and then merge via pull request into my "master" for deployments. Today I completed my pull request into "master" and was just trying to build and run a sanity test on the "master" fork code on my desktop and I'm getting the same errors from my original post. I cleaned the solution, run npm create-bundles multiple times and I still get the errors. The actions buttons are all broken again, on my desktop!
@ryancyq - Your solution does not work, it forces the user to select a date and time. My requirement is just for a date. One other note the JS code above works just fine in my prior version of AZN solution. This problem has appeared after I upgraded to AZN V6.3 and Metronic 5.
@ryancyq - My app is hosted on windows server. My hosting provider does not allow me to create sites via IIS manager. So I cannot follow all the steps in the document you shared. I have deployed multiple versions of ANZ Core MVC versions to this hosting site without any issues. If the support team can help me resolve the bundles issue and the MIME error that would be very heplful. Thanks!