Thursday, September 29, 2016

Unable to connect to a Microsoft Dynamics AX WCF service. Ensure that the Microsoft Dynamics AX AOS has fully started and that the requested WCF service is available. See the exception message below for details:

while installing AX components like EP or reporting component, I got below error in log file


System.InvalidOperationException: Unable to connect to a Microsoft Dynamics AX WCF service. Ensure that the Microsoft Dynamics AX AOS has fully started and that the

requested WCF service is available. See the exception message below for details:
2016-09-27 14:10:09Z      >Metadata contains a reference that cannot be resolved: 'http://<servername>:8101/DynamicsAx/Services/ApprovalsServices'.
2016-09-27 14:10:09Z         at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GetEndpointCollectionFromWsdlUri(String

wsdlUri)
2016-09-27 14:10:09Z         at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.RetrieveIntegrationPortEndpoints(String

aosServer, Int32 wsdlPort, List`1 portInfoList, Dictionary`2 endpointPortMap)
2016-09-27 14:10:09Z         at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.ParseWsdlFromAos(String aosServer, Int32

wsdlPort, List`1 portInfoList)
2016-09-27 14:10:09Z         at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GenerateWcfConfiguration

(ClientConfigurationModel ccm)
2016-09-27 14:10:09Z         at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GenerateMachineWideWcfConfiguration()
2016-09-27 14:10:09Z         at Microsoft.Dynamics.Setup.MsiHelpServer.PerformPostInstallActions()

then when I see the wcf services in dynamics AX, system administration-> services -> inbounds , I noticed the service was red circled and it was not running state.
this was the reason of getting the error while installing components.
so I just did full compilation and then CIL compile, do server restart and then all services were OK and happily able to install the AX components EP etc.

hope this will help....

Regards,
Sudhanshu



Monday, September 19, 2016

Change a RemoteApp Program icon in Windows 2012 R2 RD Web Access, RDS

while working for AX, RDS setup, I had to add one App and change its icon to something meaningful.
so I followed below link, but got strucked on the calculation to get the icon index
https://msfreaks.wordpress.com/2014/01/08/change-a-remoteapp-program-icon-in-windows-2012-r2-rd-web-access/


I have used the powershell command, but with a trick.
I just used the tool (http://www.nirsoft.net/utils/iconsext.html) to get the icon out and saved in the desired location.


open the tool and select the Icon, in my case it is Internet explorer.

now copy the icon file and paste in the location "C:\Windows\RemotePackages\CPubFarms\QuickSessionCollection\CPubRemoteApps" and rename as per your app icon. this should reflect in RDS browser.

you can see the icon in RDS server itself, but for modified icons it does not reflect.
select the Remote App and select properties, then see the icon as highlighted.



Dynamics AX 2012 R3 CU 11 installation step by step

to install Dynamics AX 2012 R3 CU 11, either you have to install it separately for an existing environment or for new it will slip steam.
here it is in an existing env.


you nee to download the "AXUpdateInstaller" from LCS account. (https://lcs.dynamics.com/Logon/Index).
after download run the exe and you will get below list of files.
then run "axupdate" with admin privilege, you must be connected to internet.


click Next and proceed to next screen
Accept and Continue
select Download and Install updates (this is if you are doing 1st time and you do not have a saved file from earlier installation, later will mention how to save and why)
this will prompt to ask do you want to go to LCS
once you select yes, then it will prompt the LCS login screen.
after logged in you will select which CU you needs as below.


next screen select the updates you need , Binary Updates and Application Updates, this will take time, so have patience and take HOT coffee....
then this is just conform screen

if you do from saved file your screen will change to below


now select the model store, as per your AX Model DB server and Model name, if you are installing in the DB it will automatically load, else click "Find a different model" and enter details
if you click change model, you will get below screen to enter SQL server name and model DB name


select the application updates that you want as per your env
once you click next, it will show the conflict screen, if there are any conflicts...
if no message is good, else very bad exp
if any conflicts, you will get below screen

If you want to analyse then, Click Impact Analysis Wizard button.

This will open up another Wizard and list out the KBs, then click Next.
now select the configuration to connect, if you have more it will list and click next

Now select the Model Store or enter details of Model Store

Then Select the Base DB as below
Then review as below screen

if no conflict follow below


now this will show the review of list of updates will be installed
here you can save the updates and use latter (may be for UAT, Prod subsequently after dev/test env) and use the file in step 5.
review the components that will be installed, this will show like AOS, DB, EP, Help server etc...
installation progress bar, will show the progress, have patience again here... this will take time.
this is the final success screen.
then you need to initialize the model by running below command Initialize-AXModelStore
you should get the success message as below
then open ax client and once you open you will be prompted with below screen and select as below, start the s/w update. make sure the AOS service started , else you will not get AX application opened
below are few additional things needs to be done also




finally if you see the version it will be "6.3.4000.123". this is ok, if you are doing latter install than slip stream.


Friday, September 16, 2016

"Management Reporter has not yet been configured on the server. Contact your server administrator to publish the connection from within the Management Reporter Configuration Console." Dynamics AX

Hi Guys,


I came across below error in one of my env for management reporter in dynamics ax 2012.
while opening Management Reporter from GL, got below error...
""Management Reporter has not yet been configured on the server. Contact your server administrator to publish the connection from within the Management Reporter Configuration Console."


when I check the URL in Ledger Parameter  table (enable this by going AOT -> Table -> Ledger Parameter ->ManagementReporterURL and make visible property Yes), it was blank.
then open configuration wizard and Publish Server Connection as below, enter the user id and pwd as well.


If required restart the management reporter services and then try. it should be ok.


Regards,
Sudhanshu