Tuesday, February 10, 2015

Configure Visual Studio to connect/open with correct AOS

Visual Studio is essential to create/edit SSRS reports with MS Dynamics AX 2012 and later releases. Here are steps to configure visual studio with correct AOS (in my case it is development AOS).

  1. Connect with computer where visual studio is installed
  2. Go to location where visual studio file is installed and placed. In my case it is placed at C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
  3. Right click and sent to create shortcut to desktop (one can create shortcut anywhere)
  4. Right click Visual Studio shortcut (will name something "devenv - shortcut") and take properties
  5. Set target = "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /AxConfig C:\FaisalFareedWorkfolder\DynamicsAXTestSystem.axc

Path of the original visual studio installation file as mentioned in step 2
"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"

Path of the configuration file where MS Dynamics AX 2012 configuration is stored. This can be UNC file path or local path, depends on your requirements.
/AxConfig C:\FaisalFareedWorkfolder\DynamicsAXTestSystem.axc

Double click on

Make sure visual studio is connected with correct AOS. This "DynamicsAX_Test" is the configuration name in configuration file used as target in visual studio shortcut's properties.


  1. Only one comment: (is not verified, should only be some kind of hint)

    I think the specified configuration is used to connect the application explorer within VS to the right AOS. If nor config is given, the default configuration from registry HKCU hive ist used.

    but if you're going to develop run reports I think you additionally have to copy the axc file with the name Microsoft.Dynamics.AX.ReportConfiguration.axc (exactly this) to the private assemblies folder of the VS bin folder

    otherwise you're working against the correct AOS to get/write your project, but during excution you're going to run against the wrong one.

    see https://msdn.microsoft.com/en-us/library/gg889291.aspx

    I've always used a cmd file which
    1st) copies the axc to private assemblies folder under the dedicated name
    2nd) launch devenv with axconfig switch

    maybe this is not neccessary any more, but I don't know exactly



  2. Hi Douglas,

    I appreciate your comment but I haven't came across to copy assemblies in private folder for reports development. I have not copied config files into private folder ever and have been developing reports. I will look into this requirement more in details then will update you.

  3. Hi : Thank you for your post, I try is work fine :)

  4. Hi Admin,
    Excellent blog and its totally loaded with valid posts on Java and .Net technology. Consider including RSS feed in your blog, so aspirants like me can follow your blog easily. Dot Net Training

    1. Thanks for your comment and RSS feed is on now.

  5. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
    Python Training in Chennai

  6. I would say while reading your article, i felt very proud. Because the information you written very useful, please keep posting this type of articles.
    Devops training in Chennai | Devops training Institute in Chennai

  7. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    Java Training in Chennai | J2EE Training in Chennai | Advanced Java Training in Chennai | Core Java Training in Chennai | Java Training institute in Chennai


I will appreciate your comments !