<?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: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58185.aspx</link><pubDate>Fri, 20 Aug 2010 06:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58185</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58185.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58185</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;Well, I&amp;#39;m dying to look at your screen and actually see what is happening. Let me know when you are available for a free consult.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>Re: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58168.aspx</link><pubDate>Thu, 19 Aug 2010 18:40:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58168</guid><dc:creator>joeydanielallen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58168</wfw:commentRss><description>&lt;p&gt;Catharine,&lt;/p&gt;
&lt;p&gt;I am having the same issue with a web enabled form.&amp;nbsp; I believe the assembly created for custom code is&amp;nbsp;failuring due to .Net access security.&amp;nbsp; I&amp;#39;ve used Process Monitor to watch what is occurring.&amp;nbsp; There is a request to the file system regarding the directory but nothing else which makes me believe .Net is blocking the access.&amp;nbsp; If anyone else has info, please add.&amp;nbsp; At this point, I believe a restructuring of the solution should take place since InfoPath was not meant to do file access work...&lt;/p&gt;</description></item><item><title>Re: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58160.aspx</link><pubDate>Thu, 19 Aug 2010 13:27:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58160</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58160</wfw:commentRss><description>&lt;p&gt;Thank you for your reply...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am running both forms. I have full access to all the data connections in use.&amp;nbsp; I am set up as admin in dbxl and in sql for the data connections.&lt;/p&gt;
&lt;p&gt;What do you mean &amp;quot;remove all the references from the sharepoint&amp;quot; ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58154.aspx</link><pubDate>Thu, 19 Aug 2010 12:07:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58154</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58154</wfw:commentRss><description>&lt;p&gt;This permission issue might be because you&amp;nbsp;are&amp;nbsp;trying to access&amp;nbsp;data from dataconnection you are not permitted to use. Or if user who is opening an infopath form has read only permission. Yes you won&amp;#39;t be able to debug the code part, ideal way is remove all the references from the sharepoint and put alert to see the cause of error. Hope it helps..&lt;/p&gt;</description></item><item><title>Re: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58148.aspx</link><pubDate>Thu, 19 Aug 2010 11:03:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58148</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58148</wfw:commentRss><description>&lt;p&gt;The Secondary form is published to SharePoint.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I run the driving form (published&amp;nbsp;to sharepoint)- it fails... so there must be something wrong.&lt;/p&gt;
&lt;p&gt;How do I debug and find the cause of the error if System.UnauthorizedAccessException only means that I have it runing locally ?&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58143.aspx</link><pubDate>Thu, 19 Aug 2010 07:35:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58143</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58143.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58143</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;This is a common warning when you open the form from your local computer. If the form is published on a Web server, it won&amp;#39;t happen since that&amp;#39;s domain trust. But, locally published forms are actually more restricted. &lt;/p&gt;</description></item><item><title>What does System.UnauthorizedAccessException indicate ?</title><link>https://www.infopathdev.com:443/forums/thread/58116.aspx</link><pubDate>Wed, 18 Aug 2010 14:51:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58116</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58116</wfw:commentRss><description>&lt;p&gt;I have a template (driving), which when various criteria are filled in, will go away and open other forms&amp;nbsp;(secondary) and edit the data in them.&lt;/p&gt;
&lt;p&gt;I have had this working before but I have obviously changed something to make it not work.&lt;/p&gt;
&lt;p&gt;The secondary forms open&amp;nbsp; but when I try to create an xpath navigator on the secondary form I get this system.unauthorized access exception.&lt;/p&gt;
&lt;p&gt;Both the&amp;nbsp;driving template and the secondary template are signed and published (by me) as content types to the same SharePoint library.&lt;/p&gt;
&lt;p&gt;The driving template is published with &amp;quot;Automatically determine&amp;quot; security level and the secondary template is published fully trusted.&lt;/p&gt;
&lt;p&gt;I notice that when running in debug opening the secondary form prompts for the InfoPathSecuityNotice(attached) - the location of the xsn is not anything I recognise - but the form opens as expected.&lt;/p&gt;
&lt;p&gt;I am using VB.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;returnValue = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.XmlForms.Open(filelocation, behavior) - runs ok&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;testnode = returnValue.MainDataSource.CreateNavigator.SelectSingleNode(testxpath, returnValue.NamespaceManager) - fails...&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>