Monday, July 6, 2015

Error: Invalid Command Line. Unknown Switch : Axconfig. While opening the Visual studio shortcut with /AxConfig Parameter

Hi All,

Today we will discuss about an error caused when opening the Visual studio shortcut which connects to a  particular AOS instance.

Error:

Innvalid Command Line. Unknown Switch : Axconfig.

Use:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]

The first argument for devenv is usually a solution file or project file. You can also use any other file as the first argument if you want to have the file open automatically in an editor. When you enter a project file, the IDE
looks for an .sln file with the same base name as the project file in the parent directory for the project file. If no such .sln file exists, then the IDE looks for a single .sln file that references the project. If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln file name that has the same base name as the project file. 


 


 Resolution:

Check whether the following components have been installed :
 
 1) AX component -reporting services extensions.
2)AX component -Visual studio Tools
3) SQL server - Sql server data tools

Important Note : Check whether the VS Shortcut is pointing to the correct AOS.

 Here is the  generic one used for opening the visual studio for a particular AOS configuration.


"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /AxConfig "C:\AXEnvironment\AX63_APM_Dev01\shortcuts\development.axc"

Change the above properties based on your configuration name and location where the .axc file has been saved.


Happy Daxing.!!!




No comments:

Post a Comment