Found the issue, I was using Visual Studio Express Edition. After installing the Professional Edition, its working now
I have one more question, I created a form template(*.xsn) which has recursive choice elements.
How can I add event listener for the <insert item>? - For example: The main element(Partition name) has four choices, when ...