Error while writing managed code for infopath 2007 forms - InfoPath cannot add the event handler.

I receive some problem from my colleague when designing an infopath-2007 form that uses managed code for custom event handling. Here is the error:

InfoPath cannot add the event handler.

To work with Visual Basic or C# code, Microsoft visual studio tools for Applications (VSTA) is reguired. The Microsoft .Net Framework 2.0 and Microsoft Core XML Services 6.0 must be installed prior to installing VSTA…..

He has installed everything that is required. (MSXML Parser 6.0 / VS-2005 / VSTA) but still facing this error. Here is the solution from “Faithful”:

(1) Start “Add or Change Programs” from Control Panel

(2) From the list of installed programs, select “Microsoft Office 2007”, see this:

And click the “Change” button

(3) In the dialog that comes up, click the “Continue” button

(4) In the dialog that comes up, drill down to “Visual Studio Tools for Applications” and select “Run from My Computer”, like this:

And click “Continue”

(5) When the installation is done, you should be able to add events to your InfoPath forms.

Posted in .Net, SharePoint.

6 Responses to “Error while writing managed code for infopath 2007 forms - InfoPath cannot add the event handler.”

  1. lia Says:

    thank you very much.. this article was help me.. ^_^

  2. Sudheer Says:

    Thanx dude it has solved my problem

  3. grace Says:

    Thank you so much.. so far you are the only one that makes sense.. and was able to help me out…
    thanks

  4. apkumar Says:

    Great post.

    It resolved my problem.

  5. Nagaraju Says:

    Thanks it has solved my problem

  6. Asha Nikam Says:

    I have searched many sites for a solution, you are the best, keep up the good work.

Leave a Reply