Microsoft Dynamics AX 2009 Programming: Getting Started October 29, 2009
Posted by erlenddalen in Dynamics Ax 2009.Tags: Book, Development, Dynamics Ax 2009, programming, X++
1 comment so far
Hi again all,
The reason my blog has been sleeping lately is that I have been busy trying to write a book. You can preorder the book now:
Microsoft Dynamics AX 2009 Programming: Getting Started
Convert WebForms into .NET User Controls September 20, 2009
Posted by erlenddalen in Enterprise Portal.Tags: .NET User Control, Dynamics Ax, Dynamics Ax 2009, Dynamics Ax 6.0, Enterprise Portal, User Control, webform converter, WebFors
add a comment
As some of you might have noticed the use of web elements in the AOT in the next version of Ax will be gone. This means that all of the Enterprise Portal development has to be done in .NET.
If you are working with Ax 2009, I strongly reccomend that you convet all your webforms into .NET user controls now. I have also found this nice feature that does this conversion automatically.
Simply import the attached file (rename the filetype from doc to xpo first) and edit the method getFormsToConvert and list all the webforms you want to convert.
Then simply execute the class.
The class described in the SDK as well and I would not be surprised if it is included in the next service pack.
Converting X++ to MSIL – MUST SEE for all Ax developers September 10, 2009
Posted by erlenddalen in Dynamics Ax 6.Tags: .Net, Converting X++ to MSIL, debugging, Dynamics Ax, Dynamics Ax 6, MSIL, X++
add a comment
Hi all,
I know it’s been a while, but I guess you all know how it is to be busy, right?
Anyway, I just wanted to share a video I found on channel9. It shows what MS is doing to merge the X++ and .Net.
Unable to debug Enterprise Portal running on Windows Server 2008 June 29, 2009
Posted by erlenddalen in Dynamics Ax 2009, Enterprise Portal.Tags: Debug, Debugging .net connector, Debugging Enterprise Portal, Dynamics Ax, Dynamics Ax 2009, IIS, Remote Desktop, Terminal Services, Windows Server 2008
1 comment so far
I have been in contact with MS Premium Support today and thay have informed me that debugging X++ code that executes in IIS (Enterprise Portal) will not work when the webserver is using Windows Server 2008. This is due to the redesign of terminal services processes that ensures that windows services will have exclusive access to Session 0. In previous versions, you could log on to the console either phisically or using remote desktop and /console or /admin -flags to log on to Session 0.
This is not possible in Windows Server 2008 and the result is that the debugger is unable to attach to the IIS process.
Microsoft is working on a hotfix, but does not know when it will be released.
The only option as of now is to downgrade the OS (reinstall) to Windows Server 2003.
Configuring Kerberos Authentication with Role Centers May 12, 2009
Posted by erlenddalen in Uncategorized.Tags: Dynamics, Dynamics Ax 2009, Enterprise Portal, How to setup Kerberos, Kerberos, Role Center
add a comment
Finally, Microsoft has understood that they should write a document that describes how to setup Kerberos authentication for the role centers in Ax 2009:
FTP-client within Ax April 7, 2009
Posted by erlenddalen in Dynamics Ax 2009, Dynamics Ax 4.0, Misc.Tags: Ax, Ax 4.0, Dynamics Ax, Dynamics Ax 4.0, FTP, ftp client
1 comment so far
This is a small fix I have done to the WinInet class in Ax, to use it as an ftp-client.
The WinInet class has been removed in Ax2009, but it should work just fine in Ax2009 as well as it’s just a wrapper class for the WinInet.dll
You can test it out using the following job. Remember to check that the firewalls accept this kind of traffic and that you have access etc.
The file should be renamed from .doc to .xpo. Then simply import it to your Ax solution.
Quality Assurance for Dynamics Ax-based ERP systems March 24, 2009
Posted by erlenddalen in Dynamics Ax 2009.Tags: Anil Kumar Gupta, Dynamics Ax, Dynamics Ax 2009, IBI Standards, Packt Publishing, Quality Assurance, Quality Assurance for Dynamics Ax-based ERP systems
2 comments
The book “Quality Assurance for Dynamics Ax-based ERP systems” was released early last year and it has taken me a while to get a copy and read it.
The book is perfect if you build vertical or horizontal solutions for Ax as it is packed with best-practices and hints on how to achieve a high quality solution.
It’s full of lists with checkpoints and their expected results especially within the GUI chapter. It has a whole chapter on how to maintain Trustworthy Computing and the Testing chapter takes the reader through all kinds of testing that you might want to perform.
If you expect a book full how how-to’s and screenshots, this book is not for you. That being said, the book is still very easy to read and should be valuable for all Ax developers.
Be sure to order a copy here: Quality Assurance for Dynamics AX-Based ERP Solutions
How to get the current call stack in X++ January 16, 2009
Posted by erlenddalen in Dynamics Ax 2009, Dynamics Ax 4.0.Tags: Call Stack, Dynamics Ax, Dynamics Ax 2009, Stack, Stack Trace, strscan, X++, xppCallStack
1 comment so far
A neat feature in X++ is the ability to get the current call stack.
You do this by writing the following anywhere in the code:
xSession:: xppCallStack(); // without the space between : and x It's there just because when I type them together in WordPress, this is what I get ![]()
The method returns a container, but you can offcourse convert it to a string by using the con2str() method and search for a specific method or class by using the strscan() method.
This way, you can separate the code depending on how it has been initiated.
EventWriter January 9, 2009
Posted by erlenddalen in Dynamics Ax 4.0.Tags: Batch, Batch job as windows service, Dynamics Ax 4.0, Event, EventLog, Windows Service
8 comments
Many of you have probably seen this blog entry on how to setup a batch-job in Ax as a windows service in Ax 4.0: http://axaptabuilder.blogspot.com/2006/04/how-to-setup-axapta-batch-server.html
When using this solution, remember to use the nssm.exe instead of the srvany.exe so that the windows service also stop if the aos stops.
Anyway, setting up a batch-job as a windows service is off cource nice and neat, since they can be set up to start automatically and you don’t have the need for a batch-client running at all times.
An issue occures with logging though. How do you find out what has happened if something goes wrong? Well, you could look in the batch history for anything suspicious, but wouldn’t it be nicer to have errors, warnings and maybe even info’s logged in the windows event log?
I have made a neat little solution for Dynamics Ax 4.0 that does this that I have called EventWriter that is available upon request.


