Regenerating WCF Configuration Issue


I got below error when I tried to refresh wcf configuration in Microsoft Dynamics Ax 2012 Configuration Utility.

"An error occurred while regenerating WCF configuration:

Exception occurred on the metadata service on client or server.

See exception details below:

>The Server has rejected the client credentials**.**

Can any one help to resolve from this issue???



Go to system Admin ->setuo->Services and AIF-> Inbound ports.

Check the services are in green or red.?

If those are in red then full cIL compilation is required