Showing posts with label Microsoft Dynamics AX. Show all posts
Showing posts with label Microsoft Dynamics AX. Show all posts

Monday, 15 February 2016

Error when accessing AX7 VM

For last few days error started appearing when trying to login to local AX7 VM as shown below


It seems the account we were using was created by MS and was provisioned as Admin in the AX7 VM. For some reason MS have now disabled the account and as a result we cannot access the AX7 environment.

The solution is to provision another user as Admin in the AX7 VM environment. While signing up for AX7 preview (blog post here), you must have gone to portal.office.com and created a user there. The user login is in the form username@businessname.onmicrosoft.com. This user can be provisioned as an admin on the AX7 VM.

On the AX7 VM desktop find the icon shown below


Double click it and enter the user that was created on portal.office.com and click "Submit" button.


It takes some time and then you should get the following message


Now if you use the same user (that you provisioned above) to login to AX7, it should work.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Monday, 4 January 2016

AX7 Application Code Store (ModelStore in AX2012)

In different versions of Dynamics AX, application code is stored at different places and in different formats. Table below summaries this for last few versions.


Pre-AX2012
AX2012
AX7
RTM
R2-R3
Location
File System
Database - With Business Data
Database - Separate From Business Data
File System
Format
Proprietary Format
Tables
Tables
XML Files

In AX7 Microsoft has not only changed the way application code is stored but also how it is grouped. Application code, that should stay together and is distributed/compiled as a unit, is called a Package.

Location:
In AX7 the application code is saved in file system in a directory and is called PackageDirectory. The location of directory (along with other settings) is saved in a web.config file. Why web.config? Because the AX7 AOS is implemented as ASP.NET web application running on an IIS.

In IIS right click on the site "AOSWebApplication" and click on Explore as shown below.


In the folder, find web.config, open it with notepad and search for "Aos.PackageDirectory". This will have the location of application directory.


In this instance we can see that application code is located in C:\Packages. This file also contains the information of business database location.

Folder Structure:
Following diagram highlights the structure of package directory in AX7.



  • Application code consists of many packages including the standard ones that Microsoft shipped (ApplicationFoundation, ApplicationPlatform, ApplicationSuite, Calendar etc) and any custom packages. 
  • In individual package folder, a folder named "Descriptor" is present. This holds the information of the package, the packages it references and the modes that are part of this package. The file is in XML format.
  • Each package consists of one or more models (Model 1, Model 2...Model n). 
  • In the model folder (Model 1 in the above screenshot) there is a folder for each AX object type (AxClass, AxEDT, AxTable etc).
  • The information (code etc) for individual objects is stored in a XML file (shown from FleetManagment package in the above screenshot).

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Wednesday, 30 December 2015

AX7 Technical Changes Summary

With the AX 7, Microsoft Dynamics AX have been changed in such a manner that it can truly be classed as a brand new platform. On the function side, the changes are minimal (only the required changes to run the features on this  new platform).

In today's post, we'll look briefly at what is changed from technical perspective.

Client
The win 32 rich client is replaced with a browser (IE, Edge, Chrome, Safari).

AOS
Replaced with the ASP.Net web application running on an IIS.

Batch
If the AOS is gone, how my batches will run? Well a new windows service will perform this task.

MorphX
This is replaced with Visual Studio. Extensions have been added to VS to deal with model management, code compile and build. The compilation can either be done from VS or using a standalone tool xppc.

XPP
XPP stays as it is  (on the surface). Under the hood there is no p-code, no interpreter. The compile now results in CIL. The unit of compile is the object itself. What does this means? Before AX7 if a method of a class fails to compile, other methods were still usable. IN AX7 the whole class's compilation will fail. There are a lot of other enhancements to XPP. MFP's blog is the best place to find out what these are.

AOT
AOT is visible from VS in a read-only mode and is called "Application Explorer". It is available in "Classic view" and "Model View". The object location have changed for some of the objects  (EDT, classes etc.) and these are now grouped with similar objects.

Model Store
Model store is no more in the database. The AX application code is stored in the files on disk in XML format.

Model
The concept of model is same as previous versions i.e. a group of objects that typically can be distributed.

Package
New concept in AX7. A package can consist of one or more models and is a used for deployment/compilation of these models. Each package have its own folder. Inside the package folder model folders exist.

VS Solution
A VS solution is a collection of projects. The solution information is not saved in the packages/models.

VS Project
A VS project is a group of objects that are related. A VS solution can have more than one VS project. Similar to VS solution, the project information is not saved in the packages/models. A VS project can only belong to one Model. Projects can be exported as .axpp file and imported on other AX7 installations.

Debugging
There is no standalone debugging application. VS is used for debugging. To start debugging a start-up project and start-up object must be specified.

Build
A single project, model or a set of models can be build. The option to synchronise database is available as part of the build process.


This posting is provided "AS IS" with no warranties. Use code at your own risk.

Monday, 21 December 2015

Running AX7 VM on Oracle VirtualBox

In my previous post I described how to obtain the VM for AX7 CTP8. To run this VM you do not have to use Hyper V, VirtualBox works perfectly as well. In today's post I'll outline the steps required to run this VM in the VirtualBox.

Once you have downloaded the VM (20 files of almost 20 GB size), double click on the first file.


This will ask you the folder where to extract the files. Choose a folder and click Extract. Make sure that the drive where you are extracting the files have at least 120 GB space. More space will be required if you want to save the state of the machine instead of turning it off every time.


This step will take a while depending on your hardware capabilities. Once done you'll have a single VHD file.


Open VirtualBox and click on New button.


Name the virtual machine and choose windows OS as shown below.


Click on Next and choose RAM. MS recommends having a VM of at least 16 GB RAM. In my test machine I could only give it 6 GB, it was slow but not very slow.


Click Next and choose the extracted VHD,


Clicking on Create will create the VM. Before starting the VM, click on the Settings and change the number of CPUs as shown below. More CPU the better it will be.


The network on a VirtualBox VM is by default configured using NAT as shown below so no special setup is required here.


Now the VM can be started. Once started, on the the login page you'll see the familiar Windows 2012 credentials screen. The famous MS password for the VM Administrator account can be used to login.


Once logged in, open IE and click in the address bar. Here the AX7 link should automatically appear (highlighted below) as it was used previously when MS created the VM.


Once clicked, it will navigate to the Sign in page.


The password for this is mentioned on the AX 7 Sign Up page on Customer/Partner source. After entering the password, AX 7 opens up.


As my test machine was not very powerful, I initially got an error (I assume not everything was started), however after some time when I came back to this page and refreshed it, it worked fine.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

Sunday, 20 December 2015

How to get AX 7 Technical Preview VM

Couple of days ago "Microsoft Dynamics AX" public preview went live. @satishthomas from Microsoft blogged more info on this (link). In summary following needs to be done to get it going

1. For customer source use this link  and for partner source use this link.
2. Login using either customer or partner source credentials.
3. Once logged in scroll down and you'll see a small paragraph as shown below


Clicking on the highlighted part will get you going on signing up for the preview. More details on these steps can be found on Satish's blog.

However if you want to get a VM to run it locally, you'll have to take some additional steps. Once you have signed up for the preview, come back to the sign up page on customer/partner source and scroll further down in the FAQ section and find the feedback question as shown below.


Clicking on the link will take you to Connect site where you'll be automatically added to preview program. There you'll see a download section as shown below

The download section will contain the link to download the preview VM



This posting is provided "AS IS" with no warranties. Use code at your own risk.

Friday, 18 December 2015

AX 7 Help Wiki available

Help wiki is now available for technical preview of new "Microsoft Dynamics AX" aka AX 7. It can be accessed from the following link

https://ax.help.dynamics.com/en/

The wiki details how to sign up for AX 7, get an instance running either in cloud or get a vhd to run locally, technical changes and a lot more.

This posting is provided "AS IS" with no warranties. Use code at your own risk.