The last month or two I have been “forced” to look at X++ and AX2012, and getting started writing X++ is easy, if you have a background as a .NET developer.When you start writing and compiling code in AX, you quickly get frustrated as a .NET developer. Why does it not work, – my “compilation”…
Tag: CIL
Microsoft Dynamics Ax
Ronnie H. Hegelund: AX 2012 X++ compilation from a .NET developers perspective
by Bo Jensen •
Here is a very useful explanation on X++ code vs. CIL code in Axapta 2012 from Ronnie Hegelund.
Microsoft Dynamics Ax
Dynamics AX: IL Compile and some things to understand for AX 2012
by Bo Jensen •
One thing I wanted to make sure and point out, with all this talk about Microsoft Dynamics AX 2012, Services, and Complex Data Contract concepts, is around the need for proper IL generation of Xpp / X++ code artifacts. The image above is not technically correct for AX 2012, but it’s a quick snag image,…
Microsoft Dynamics Ax
Compile and CIL Generation errors when reporting extensions is not installed
by Bo Jensen •
Under certain circumstances, you may receive the followingcompile or CIL generation errors when installing Microsoft Dynamics AX 2012. SysStartupCmdGenerateSsasProject (object) has no validrunable code in method ‘buildProject’. BIGenerator (object) has no valid runable code in method‘classDeclaration’. BIAnalysisServicesProjectController (object) has no validrunable code in method ‘buildProject’.
Microsoft Dynamics Ax
Microsoft Dynamics AX: Duplicate type with name in assembly
by Bo Jensen •
Duplicate type with name in assembly XX Sometimes we need to delete and recreate the service, we might face some issues with duplicate type error. Here is the solution:
Microsoft Dynamics Ax
Stack trace: Invalid attempt to call WinAPI::findFirstFile running in CIL on the client.
by Bo Jensen •
This error you will normally encounter when running a batch job. The issue is that batch processing doesn’t suppport WINAPI::findFirstFile method. Actually I was trying to find a file in the folder and moving to some other folder, you can use this alternative: public void run(){ System.IO.DirectoryInfo di; System.Type arrayType; System.Array array; System.IO.FileInfo fi; FilePath…
Microsoft Dynamics Ax
Debugging managed code in AX 2012
by Bo Jensen •
Since a lot of X++ code is now executed in CLR there should be a possibility to debug it. The standard AX debugger cannot help here since it is capable of debugging interpreted code only. However, Visual Studio 2010 can do the job.
Microsoft Dynamics Ax
X++ can be compiled to CIL in AX 2012
by Bo Jensen •
In AX 2012 X++ code can be compiled into CIL and executed in CLR environment hosted on the application object server. This means X++ became almost a .NET language. Almost, because there are still some X++ artifacts that can only be interpreted, for example forms. However the vast majority of server-side code can be compiled…
Microsoft Dynamics Ax
IL Compiles Explained – AX Support – Site Home – MSDN Blogs
by Bo Jensen •
I’ve been asked several times what a Full or Incremental ILCompile is in AX 2012. If you have that same question here is somebackground information.
Microsoft Dynamics Ax
Resolving Compile Errors and Generating CIL is not Optional
by Bo Jensen •
All too often I visit clients or move in a code release to a production environment, only to find there are compile errors in the environment. This is totally unacceptable, and not just in a production environment. The existence of a compile error in a production environment is bad in itself, but it clearly shows…
Microsoft Dynamics Ax
Dynamics Ax Musings: X++ in the .NET CLR : Life in the Fast Lane
by Bo Jensen •
You’ve heard it by now. In Dynamics AX 2012, X++ can actually run in the .NET CLR. What I’ve often heard is “X++ running on the server runs in IL”. Well, that is somewhat true. But it doesn’t mean setting your classes or menu items to “RunOn Server” makes them run in IL. So what…