<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath crashes</title><link>https://www.infopathdev.com:443/forums/thread/13196.aspx</link><pubDate>Mon, 16 May 2005 13:41:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13196</guid><dc:creator>christophe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13196</wfw:commentRss><description>Hi Agni, &lt;br /&gt;&lt;br /&gt;Thank you very much, you are right, the security was the problem.&lt;br /&gt;&lt;br /&gt;Thanks a lot for your help&lt;br /&gt;&lt;br /&gt;Christophe</description></item><item><title>Re: Infopath crashes</title><link>https://www.infopathdev.com:443/forums/thread/13195.aspx</link><pubDate>Mon, 02 May 2005 03:31:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13195</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13195.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13195</wfw:commentRss><description>Sorry for being late,&lt;br /&gt;Please add a try catch block around "thisXDocument.UI.Alert("Hello World");" and check out what exception it is throwing.&lt;br /&gt;Steps you follow here are&lt;br /&gt;1. Add "try catch" block to the statement.&lt;br /&gt;2. Compile the solution and Publish it.&lt;br /&gt;3. Open the form from sharepoint.&lt;br /&gt;4. Attach Infopath form to your code and put a breakpoint in the try block.&lt;br /&gt;5. Click on the button and check out whats the exception.&lt;br /&gt;&lt;br /&gt;1. One problem could be security issue. Check out what is the level of security that you have on the form.&lt;br /&gt;If the level of security is restricted it does not allow Managed code.&lt;br /&gt;&lt;br /&gt;2. One more security issue could be if your sharepoint and your machine are on not part of same domain then also managed code is not allowed.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: Infopath crashes</title><link>https://www.infopathdev.com:443/forums/thread/13194.aspx</link><pubDate>Thu, 28 Apr 2005 19:18:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13194</guid><dc:creator>christophe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13194</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;At the beginnig, I've programmed a much complex function wich opens a form to browse a sharepoint library, and the I've seen the crash, I replaced all my code with this one.&lt;br /&gt;&lt;br /&gt;[InfoPathEventHandler(MatchPath="CTRL1_5", EventType=InfoPathEventType.OnClick)]&lt;br /&gt;public void CTRL1_5_OnClick(DocActionEvent e)&lt;br /&gt;{&lt;br /&gt;   // Write your code here.&lt;br /&gt;   thisXDocument.UI.Alert("Hello World");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;And even with this very simple single line Infopath crashes.&lt;br /&gt;&lt;br /&gt;Do you have an idea of what happens ?&lt;br /&gt;&lt;br /&gt;Thanks a lot&lt;br /&gt;&lt;br /&gt;Christophe</description></item><item><title>Re: Infopath crashes</title><link>https://www.infopathdev.com:443/forums/thread/13193.aspx</link><pubDate>Thu, 28 Apr 2005 19:07:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13193</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13193</wfw:commentRss><description>Hi Christophe, Welcome to the board. &lt;br /&gt;Can you provide with more inforamtion here, please copy paste your c# Onclick funtion here. &lt;br /&gt;Probably you are hardcoding values which are not available when the form is published.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Infopath crashes</title><link>https://www.infopathdev.com:443/forums/thread/12445.aspx</link><pubDate>Thu, 28 Apr 2005 18:00:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12445</guid><dc:creator>christophe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12445.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12445</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;I'm sorry but I am a beginner in Infopath development. I've tried to develop my own&lt;br /&gt;function in C# to handle a click in a button. It works perfectly in debug mode (from VS.NET), but as soon as I publish the form and try to open it in the normal way Infopath crashes and cannot open my form.&lt;br /&gt;&lt;br /&gt;I should forget something ? &lt;br /&gt;&lt;br /&gt;Any ideas or advices would be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;Christophe</description></item></channel></rss>