Skip to content
Microsoft Dynamics 365

Some time ago we run into following problem. When trying to install Enterprise Portal axsetup.exe crash wile retrieving the list of the sites with following error in installation log:

Message: Operation is not valid due to the current state of the object.
FullText: System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Microsoft.Dynamics.Framework.Deployment.Web.WebSiteConfigurator.GetServerBindingsInformation(String webSiteName, ServerBindings serverBinding)
at Microsoft.Dynamics.Framework.Deployment.Web.WebSiteConfigurator.GetPortNumberOfWebSite(String webSiteName)
at Microsoft.Dynamics.Framework.Deployment.Portal.EPDeployment.get_IISVirtualServers()
at Microsoft.Dynamics.Framework.Deployment.Portal.EPDeployment.GetVirtualServerList()
at Microsoft.Dynamics.Framework.Deployment.Portal.EPDeployment.Microsoft.Dynamics.Framework.Deployment.Portal.IEPDeployment.GetVirtualServerList()
at Microsoft.Dynamics.Setup.DeploymentPortalWrapper.GetVirtualServerList()
at Microsoft.Dynamics.Setup.MainForm.s300_ShowTab(Object sender, EventArgs e)
at Microsoft.Dynamics.Setup.AxTabPage.ShowPage()
at Microsoft.Dynamics.Setup.MainForm.ShowPage(PageIDs pageID)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The issue happens when one of our IIS Web Sites are having only one binding which is https binging i.e.:


The problem is that axsetup.exe does not able to retrieve secure bindings but only standard bindings. Because there is no standard binding for this page axsetup.exe is unable to get port information for the site and then crashes. To workaround this issue:

1. If the site running only https binding is not the site where you wish to install your Enterprise Portal you can just stop the site then axsetup.exe will not try to get info for this site and will not crash.

2. If the site running only https binding is the one where you wish to install your Enterprise Portal then you can add to bindings temporary standard bindings (http). Then after axsetup.exe finish installation you can again remove it

–author: Czesława Langowska Vliegen
–editor: Czesława Langowska Vliegen
–date: 22/Sep/2011
We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!