5 comments

Dynamics Ax 2012: Error Installing Enterprise Portal

Published on Thursday, June 21, 2012 in ,

I was assisting a colleague which was installing the Ax 2010 Enterprise Portal on a SharePoint Farm. The farm consisted of 2 servers hosting the SharePoint web applications (the actual sites), and 2 servers hosting the central admin and application services roles. We wanted to start with installing the Enterprise Portal bits on both web front servers without actually choosing the “create site” option in the installer. This would just prep the server and then we’d finalize it by running the “create site” option on the central admin server.

Here’s the screenshot where we selected the Enterprise Portal (and some other prereqs for the Portal):

image

Some steps further we were supposed to get a dropdown with an overview of all sites hosted by SharePoint. Although SharePoint was installed, and we had multiple sites created, we were greeted with an error stating Microsoft SharePoint 2010 is not installed or running. Please run the prerequisite utility for more information. Operation is not valid due to the current state of the object.

image

Going back and clicking next again doesn’t really solve the problem. Going to the installer log file (which is located in \Program Files\Microsoft Dynamics AX\60\Setup Logs\[Date]) showed us that the installer seemed to query the local IIS configuration just fine. As far as I could tell no actually error was given, but it started processing shortly after trying to get information regarding the first actual SharePoint site.

 

image

After staring a bit at the log my eye fell on the “GetFirstHostHeaderOfWebSite” method. It seemed to have ran fine for the default website, but it wasn’t executed for the first actual SharePoint site. And it rang a bell as we have customized this a bit. We had in fact 3 host headers for each SharePoint site. One for the virtual name, one for the virtual name but dedicated to the node and one which was just blank with the IP. I know the last one more or less make the others unnecessary, but we added that one later on when we figured our hardware load balancer status probing wasn’t playing nice with the host headers.

image

Long story short, after modifying ALL sites found in the IIS configuration so that thed have one or no host headers, the setup was able to enumerate the potential sites to configure the AX Enterprise Portal for just fine. Bit weird and seems like a bug in the installer to me…

Related Posts

5 Response to Dynamics Ax 2012: Error Installing Enterprise Portal

Anonymous
22 June, 2012 09:51

Just discovered this bug in the installer as well. The error 'operation is not valid due to the current state of the object' can occur when the IIS sites are enumerated.

Found the best results for us is to have only one host header in the IIS website in SharePoint and then re-run the installer.

Thanks for sharing, help me out!

Cheers
Chris Hatton

Anonymous
03 August, 2012 03:43

Check any conflicts on bindings.
Thanks man!

07 December, 2012 18:44

I cant solve this problem, can anyone give me more details please.

Thanks and regards

Santiago

09 December, 2012 13:16

Well it seems the AX Portal installer is really picky. He needs all sites available in IIS to only have one host header. You can verify this in IIS by right-clicking in IIS and choosing edit bindings for each site.

11 February, 2020 09:50

Thanks mate

Add Your Comment