<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Custom Code to open a URL resulted in: Business Logic failed due to an exception. Type: SecurityException error</title><link>https://www.infopathdev.com:443/forums/thread/91439.aspx</link><pubDate>Tue, 16 Jul 2013 19:31:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91439</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91439</wfw:commentRss><description>&lt;p&gt;Well - not really, but the code is going to run on the server. So, when you run the form in preview and click the button, Process.Start is starting the process on &lt;em&gt;your&lt;/em&gt; machine. If the code runs on the server, what machine would you expect the process to start on? I&amp;#39;d think it would start on the server.... I don&amp;#39;t know of an alternative for what you are trying to do, or I&amp;#39;d suggest it... I think you may be stuck with a single form with multiple views.&lt;/p&gt;</description></item><item><title>Re: Custom Code to open a URL resulted in: Business Logic failed due to an exception. Type: SecurityException error</title><link>https://www.infopathdev.com:443/forums/thread/91437.aspx</link><pubDate>Tue, 16 Jul 2013 19:24:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91437</guid><dc:creator>Plee_agi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91437</wfw:commentRss><description>&lt;p&gt;Hi Hillary, thanks for replying.&amp;nbsp; I don&amp;#39;t understand what you are saying.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is there something wrong in my code?&lt;/p&gt;</description></item><item><title>Re: Custom Code to open a URL resulted in: Business Logic failed due to an exception. Type: SecurityException error</title><link>https://www.infopathdev.com:443/forums/thread/91436.aspx</link><pubDate>Tue, 16 Jul 2013 18:31:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91436</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91436</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I think in your browser form this code is going to open the URL on the server.&lt;/p&gt;</description></item><item><title>Custom Code to open a URL resulted in: Business Logic failed due to an exception. Type: SecurityException error</title><link>https://www.infopathdev.com:443/forums/thread/91435.aspx</link><pubDate>Tue, 16 Jul 2013 18:27:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91435</guid><dc:creator>Plee_agi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91435</wfw:commentRss><description>&lt;p&gt;I am writing a simple&amp;nbsp;custom code to a Button control in C#.&amp;nbsp; The code is supposed to open a URL in the same window.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;blockquote&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL10_5_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; URL = &amp;quot;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&lt;a href="http://www.google.com/"&gt;www.google.com&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;System.Diagnostics.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Process&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Start(URL);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;
&lt;p&gt;Note:&amp;nbsp;Typically,&amp;nbsp;I would have a Hyperlink control, Howerver, clicking on a Hyperlink opens&amp;nbsp;the URL in a&amp;nbsp;new Window or Tab.&amp;nbsp; I have a process where a user would be asked to fill up to 10 web-enable InfoPath 2010 forms.&amp;nbsp; I need the code above in order for the user to switch from one form to another seamlessly.&amp;nbsp; I will be replacing &amp;#39;www.google.com&amp;#39; with a URL that opens an InfoPath form in browser mode.&amp;nbsp; For now, I have ruled out creating a single InfoPath form with 10 views -- since each of the forms has data/SharePoint columns to support and its own unique workflows.&lt;/p&gt;
&lt;p&gt;I have set the form Security Level to domain.&lt;/p&gt;
&lt;p&gt;I have published it as an Admin-aproved form template; uploaded the template to InfoPath Form Services (SharePoint 2010), activated it to my site collection, applied the InfoPath Content Type to my form library.&lt;/p&gt;
&lt;p&gt;When I click on the button I get this error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Category: Runtime - Business Logic&lt;/p&gt;
&lt;p&gt;Message: Business logic failed due to an exception. (User: ******, Form Name: URLTest PL, IP: , Request:&amp;nbsp;&amp;lt;&amp;lt;removed by me for security purposes&amp;gt;&amp;gt;, Type: SecurityException, Exception Message: Request failed.)&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also tried to set the Security Level to Full Trust.&amp;nbsp; After republishing the form when I click on the button, nothing happens.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any&amp;nbsp;information or help will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;P.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>