<?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: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/90465.aspx</link><pubDate>Thu, 06 Jun 2013 14:56:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90465</guid><dc:creator>Turtle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90465.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=90465</wfw:commentRss><description>Thanks for the quick feedback. This is actually the exact code I&amp;#39;m using. The only difference being I am using InfoPath 2013 but still on SP Server 2010. I have other forms in the Form Templates Library that are functioning properly with anonymous access, but those were all published from InfoPath 2010. I wonder if using the newer version of InfoPath is where I am running into problems. I will contact the administrators and find out if they know what is causing this error. Thanks again!</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/90464.aspx</link><pubDate>Thu, 06 Jun 2013 14:21:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90464</guid><dc:creator>boristovich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90464.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=90464</wfw:commentRss><description>Hello Turtle,

I did find I solution for this problem, however it is for Microsoft SharePoint Server 2010 and the form is designed in InfoPath 2010. I use a simple button for submission of the form with the following code:


        public void CTRL132_5_Clicked(object sender, ClickedEventArgs e)
        {
            //some rules before submission

                SPSecurity.RunWithElevatedPrivileges(delegate() { this.Submit(); });
        }


This code will submit the form using the system account in the specified form library (no need for enabling anonymous access in the library or changing the &amp;quot;DOCLIB&amp;quot; to &amp;quot;LIST&amp;quot;......).

However you will need to enable Anonymous Access from SharePoint Central Administration and allow access for anonymous users in the Form Templates Library, where administrator approved forms are stored.

I hope this helps!

Cheers!</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/90461.aspx</link><pubDate>Thu, 06 Jun 2013 13:43:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90461</guid><dc:creator>Turtle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=90461</wfw:commentRss><description>I&amp;#39;m having this same problem, did you ever find a solution?</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/54544.aspx</link><pubDate>Wed, 05 May 2010 14:47:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54544</guid><dc:creator>boristovich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54544</wfw:commentRss><description>&lt;p&gt;I tried it, but it doesn&amp;#39;t work. I get the same error message.&lt;/p&gt;
&lt;p&gt;Maybe there is a problem with my submit code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void FormEvents_Submit(object sender, SubmitEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Submit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.CancelableArgs.Cancel = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So can you recomend me another way to submit the form anonymously? &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/54542.aspx</link><pubDate>Wed, 05 May 2010 14:02:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54542</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54542</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;include this statement in&amp;nbsp;your submit procedure&amp;nbsp;&lt;/p&gt;
&lt;p&gt;e.CancelableArgs.Cancel = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/54538.aspx</link><pubDate>Wed, 05 May 2010 13:39:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54538</guid><dc:creator>boristovich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54538</wfw:commentRss><description>&lt;p&gt;Hi Qazi,&lt;/p&gt;&lt;p&gt;Thank you very much for your quick response. I can now open my form as anonymous user.&lt;/p&gt;&lt;p&gt;But I have another problem. I am using this code for submitting the form:&lt;/p&gt;&lt;p&gt;&lt;code&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;br /&gt;
{&lt;br /&gt;
this.Submit();&lt;br /&gt;
});&lt;/code&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;When I click the Submit button (in both cases: anonymously and as authenticated user) I get an error message:&lt;br /&gt;&lt;/p&gt;&lt;table style="table-layout:fixed;"&gt;&lt;tr&gt;
&lt;td id="ErrorDialogShortMessage" class="ErrorPageNormalText"&gt;There has been a 
critical error while processing the form.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="ErrorPageNormalText"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="ErrorPageNormalText"&gt;Click &lt;b&gt;Start Over&lt;/b&gt; to load a new copy of the 
form. If this error persists, contact the support team for the Web 
site.&lt;br /&gt;&lt;br /&gt;Click &lt;b&gt;Close&lt;/b&gt; to exit this message.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;When instead of submitting code, I use simple Submit using the Main Data Connection, I can submit the form as authenticated user, but not anonymously.&lt;/p&gt;&lt;p&gt;What can be the problem here?&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;p&gt;Boris &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/54521.aspx</link><pubDate>Wed, 05 May 2010 07:00:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54521</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54521</wfw:commentRss><description>&lt;p&gt;when u publish a code less form, it is published to a particular doc lib and the template resides in the doc lib itself, but when u publish a template having managed code the template is saved at &lt;/p&gt;
&lt;p&gt;http://your site collection/FormServerTemplates/yourtemplate.xsn&lt;/p&gt;
&lt;p&gt;so that might be causing the problem, the anonymous users wont be havign access to this location&lt;/p&gt;</description></item><item><title>Problem with administrator approved form</title><link>https://www.infopathdev.com:443/forums/thread/54499.aspx</link><pubDate>Tue, 04 May 2010 16:33:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54499</guid><dc:creator>boristovich</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54499</wfw:commentRss><description>I have a problem that I have been struggling with for two weeks. I have an Infopath browser enabled form published to a Sharepoint Form Library that should be accessed anonymously. The form uses custom C# code, so it is published as an Administrator approved form, and activated to the site collection.
I have enabled anonymous access from Central Administration and to the library where the form is published (by changing the &amp;quot;DOCLIB&amp;quot; to &amp;quot;LIST&amp;quot;......). So now I can access the Forms library as anonymous user but when I try to open the form i get an error message:
&amp;quot;Retrieval of the form template from the following location is not authorized&amp;quot;.

On the other hand if I am logged on as a user, I can open the form without problems, which means that the code is fine.
Also, when I publish the form without the custom code, I can open it anonymously.

Does anyone know what&amp;#39;s causing this problem?

Any help would be appreciated.
Thanks</description></item></channel></rss>