Archive for January 5th, 2010

Dynamics AX 2009 EP Installation Problem

Tuesday, January 5th, 2010

I recently had a problem with the CEO role center, specifically the KPIs on that role center which were always loading. I have set up IE security as it was described in this MSDN article.

KPIs and Business Overview keep loading all the time and never end.

If the whole Role Center content in enterprise portal comes up except the Business Overview webpart and it keeps displaying the loading progress image for a long time with no error message in the event log, it may be because IE security setting prevents the webpart from asynchronously getting the data. To resolve this issue add the EP site to the intranet site zone in IE or disable IE Enhanced Security Configuration from Add / Remove programs -> Add / Remove Widnows Components. It still did not show the KPI web parts, but just kept loading it. I have used win2008R2.

The other problem I had with this Installation was that I was not able to modify any role center page. Whenever I would try to modify it I would receive an error message from SharePoint: Error occurred contact your administrator.

A strange thing was that when I tried to view the Role Center through Google’s Chrome browser, I could see the KPIs and modify the role center web parts. That was really frustrating.

In the event viewer I had a message:

An unexpected error has occurred.
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Then I saw this other article on MSDN.

EP Site creation is successful and able to view most of the pages. But when trying to access lookup or sorting on grid (any postback to the page) it gives an unexpected error and in eventlog it has:

An unexpected error has occurred.
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Check and make sure the Machine name or the host header does not contain any non alphanumeric characters such as “_”or “-“ etc. The machine name should just contain only alphanumeric characters.
For example mey1 is a valid machine name. mey_1 is not. If you have any other character in the machine name, then validation of viewstact MAC fails. So to resolve this issue, check and make sure the machine name contains only alphanumeric characters and EnableViewStateMac is set to true in the web.config and in case of load balancing, the same machine key is used in the web.config of all participating web server machines.

And see that I have the character _ in my computer name.

When I changed the name of my computer so I have only alphanumeric characters, I was able to see the KPIs from IE and I was also able to modify my role center pages with IE.

My opinion is that this step should be included on the AX Installation guide and put it on first place there, because it is very hard to change the name of computer when you install all of EP in AX 2009.