I recently updated Dynamics 365 Marketing instance and installed the portal application.
Here are the steps I followed to deploy the sample event portal: Power Apps portal hosted custom event website (Dynamics 365 Marketing Developer Guide) | Microsoft Docs
I downloaded event portal zip file according to the application version and deployed it using DeployToDynamics365Instance.ps1
PowerShell script.
ISSUE
Portal loaded a blank page after the deployment. When I checked the browser console, it showed below error.
Refused to apply style from 'https://testorg.powerappsportals.com/eventmanagementapp/styles.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.testorg.powerappsportals.com/:1
Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/runtime.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1
Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/polyfills.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1
Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/scripts.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. testorg.powerappsportals.com/:1
Refused to execute script from 'https://testorg.powerappsportals.com/eventmanagementapp/main.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
ROOT CAUSE
Deployment script has not copied all required files for the specific D365 marketing application version. You can find the application version by going into https://make.powerapps.com > Select environment > Solutions page.
HOW TO FIX
Manually deploy required sample event portal files for the marketing instance.
Here are the steps:
Once loading is completed, reload the event portal and it should now load event portal homepage.
Original Post https://immersivecoder.com/2021/04/02/fixing-dynamics-365-marketing-event-portal-loading-issues/