Failed to Validate BAM Portal Web Site (BAMPortal)
I have recently encountered an error while trying to reinstall BAM Tool and the BAM Portal on a Microsoft BizTalk Server 2013 installation. I encountered the following error while attempting to configure the BAM Portal in the Microsoft BizTalk Server Configuration window.
The error specific error encountered when clicking on the red validation icon is:
Failed to validate BAM Portal Web Site (BAMPortal)
The BAM Portal website Default Web Site is not valid. (Microsoft.BizTalk.Bam.CfgExtHelper.PortalHelper)
Exception from HRESULT: 0x80005008 (System.DirectoryServices)
The usual culprit for this error is the “IIS 6 Management Compatibility” windows feature missing – However, this was not the case in this specific scenario, as the feature was already present. In this specific case, since I was reinstalling the BAM Portal, the Microsoft BizTalk Server Configuration wizard did not completely uninstall the BAM Portal from IIS. There were a few lingering pieces that have to be manually removed – Specifically the BAMManagementService and BAMQueryService IIS applications.
The solution is to manually remove those two IIS applications by following the following steps.
1. Open IIS Manager and select your website, by default it is ‘Default Web Site’
2. Click on ‘View Applications’ within the right hand ‘Actions’ panel.
3. Remove BAMManagementService and BAMQueryService.
4. Go back to the Microsoft BizTalk Server Configuration Window, uncheck ‘Enable BAM Portal’ and recheck ‘Enable BAM Portal’ to revalidate the settings.
5. Apply the Configuration.