MIM Portal fails to load after changing Masterpage or Theme

If you’re unable to do anything in the MIM portal, you might want to check your master page settings. Many times, Admins will change the Look and Feel of the site collection that MIM Portal is provisioned on. This will change the master page which will toss this nice error on almost every link in the portal.

If we modify the web.config of the web application, we can expose the .NET stack.

Change from:

<customErrors mode=”On” />

To:

<customErrors mode=”Off” />

From:

CallStack=”false”

To:

CallStack=”true”

We would need to check the masterpage.

 
$web = Get-SPWeb http://mimportalURL/IdentityManagement
$web.CustomMasterURL

Should show up as “/IdentityManagement/_catalogs/masterpage/ilm2.master”

Set this back using:

$web.CustomMasterURL =  "/IdentityManagement/_catalogs/masterpage/ilm2.master"
$web.Update()

Leave a Reply

Your email address will not be published. Required fields are marked *