Monday, December 31, 2007

Referencing Visual Studio 2008 Assembly from AX

Steps to reference .NET Assembly (using Framework 3.5) from AX:

1. Back to Hello World times :-). Create a .NET Assembly using Project type->Class Library which will return a hello world string from VS2008.

2. Build the solution and copy the HelloWorldLibrary.dll into \ax\client\bin directory.

3. Open AOT->References and browse to add the helloworld assembly to references node.

4. Now, create a job and refer the assembly namespace and code against it.

this is the code in job:

static void JobNetFramework35(Args _args)
{
HelloWorldLibrary.Class1 oc;
str retval;
;
oc = new HelloWorldLibrary.Class1();
retval=oc.HelloWorld();
print retval;
pause;
}

and it returns as expected,

"Hello World From VS2008 using NET 3.5 framework"

Communication with AX

I couldn't resist my hands-on to test how VS 2008 Communicates with AX using .NET Framework 3.5

The code works same and the logon was successfull as expected:


try
{
Axapta ax = new Axapta();
ax.Logon(null, null, null, null);
MessageBox.Show("Logon Successfull");
}
catch (LogonFailedException ex)
{
MessageBox.Show(ex.Message);
}

Exploring VS 2008

Just installed Visual C# 2008 Express Edition from the link below




Note: Visual Studio 2005 and Visual C# 2008 Express can co-exist in the same system.


Visual Studio 2008 has a host of new features, one I tried is Dynamic variable declaration. This is one of the language features:


Implicitly Typed Local Variables
Instead of explicitly specifying the type of a local variable, the var keyword instructs the compiler to infer the type of a variable based on the value assigned at initialization.


Thursday, December 20, 2007

xInfo API

I just stumbled upon this API as I had a requirement to extract the serial number from the license.

print xInfo::serialNo();

This will get you the serial number, It's handy. Also, it hosts some more static methods like:

buildNo
osName
releaseVersion
productName
licenseName

AXAPTA BUILD VERSION

Thanks to Axaptapedia Group for putting up this valuable information:

http://www.axaptapedia.com/index.php/Build_numbers

Sunday, December 16, 2007

breakpoint

Gimmee a break in form!! :-)

breakpoint;

this keyword enables you to break in form e.g. clicked method of button etc.

Thursday, December 13, 2007

SOA

Some webcasts and whitepapers about SOA (Service Oriented Architecture) are available here

http://www.microsoft.com/soa/default.aspx

Tuesday, December 11, 2007

Friday, December 7, 2007

What is Web 2.0??

And, here is the answer:

Web 2.0 refers to a perceived second generation of web-based communities and hosted services — such as social-networking sites, wikis, and folksonomies — which aim to facilitate creativity, collaboration, and sharing between users. The term gained currency following the first O'Reilly Media Web 2.0 conference in 2004

"Web 2.0 is the business revolution in the computer industry caused by the move to the Internet as platform, and an attempt to understand the rules for success on that new platform."[

Read more here: http://en.wikipedia.org/wiki/Web_2

AXUG

Visit Microsoft Dynamics Axapta User Group at:

http://www.axug.com/

The Dynamics AX User Group (AXUG) is an association of companies sharing the common interest of optimizing their usage of Microsoft Dynamics AX. This independent community of users gets together (remotely and face-to-face) through a myriad of conferences, virtual tools, and programs to share knowledge and best practices. Membership and active participation in AXUG can make all the difference in the effective use of your Dynamics AX software.

MSMQ - Troubleshooting Tips and Tricks

My Message Queuing Service was not at all starting i installed/uninstalled the component but still it was not getting started. Searched on google groups but couldn't get anything which was near to my problem.

I had took a backup of the storage folder (system32\msmq\storage) before and later on i found that i was not able to delete this folder, it throwed error : Access denied. I couple of times restarted my system but still Access denied. Finally I went to the security of the folder and gave the logged on user full rights over the folder. I was able to delete, but my message queuing service got detached from the services list. :-((

Luckily, I had took a backup :-) before I did the above exercise, then I re- created a storage folder under system32\msmq and copied the contents and bingoo!!! i could find the MSMQ Service under Services node and then i started it and it started without any errors!!

Tuesday, December 4, 2007

Difference between XMLElement and XMLNode

Just was curious to know the difference between XMLNode and XmlElement and found the answer here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=955058&SiteID=1

Monday, December 3, 2007

Dynamics AX 5.0 User Experience Guidelines

Got to see something about AX 5.0 on PartnerSource. Use these guidelines when you design new features, improve existing ones and when you update features from earlier versions.

Follow this link:
https://mbs.microsoft.com/partnersource/products/axapta/newsevents/news/BetaUXGuidelinesAX5