Error “Service Unavailable - HTTP Error 503”

If you encounter the error “Service Unavailable - HTTP Error 503”, you need to ensure that the username assigned from Identity contains the domain name.

During the application access, MeridianEDM.Web.Api tries to get GetUserCulture(). When the current user is not available in the Enterprise application, it assigns the user from HttpContext.Current.User.Identity.

If the username does not contain the domain name, it throws the exception stating "Error: Domain name required" and it goes to the main exception "Load user profile failed".

To solve this issue, register the user again with the domain name in Azure AD.