<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Getting error "InfoPath cannot add the event hander" but only on one template - others work fine.</title><link>https://www.infopathdev.com:443/forums/thread/64695.aspx</link><pubDate>Tue, 01 Mar 2011 15:50:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64695</guid><dc:creator>Gumbatman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64695</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m new to InfoPath 2007 but have some C# experience. In my learning InfoPath 2007 I did try to write some code but think I messed up the template I was working with.&lt;br /&gt;&lt;br /&gt;I only get the following errors on the template I have designed. If I create a new template, VSTA opens just fine and works correctly. The errors are:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Tools -&amp;gt; Programing -&amp;gt; Loading Event I get the error &amp;quot;InfoPath cannot add the event handler&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If I try Tools -&amp;gt; Programing -&amp;gt; Microsoft Visual Studio Tools for Applications, I get the error, &amp;quot;InfoPath cannot start Microsoft Visual Studio Tools for Applications. InfoPath cannot create the Vosial Basic or C# project&amp;quot;&lt;br /&gt;&lt;br /&gt;I would create a new template, but I have spent so much time into tweaking this one, I don&amp;#39;t want to have to go back and start it over. If there is a way I could easily do that, please let me know.&lt;br /&gt;&lt;br /&gt;Thank you for the help.&lt;/p&gt;</description></item></channel></rss>