<?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 code error</title><link>https://www.infopathdev.com:443/forums/thread/66546.aspx</link><pubDate>Sat, 14 May 2011 15:59:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66546</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=66546</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m pretty sure Full Trust is the only way to solve this.&amp;nbsp; InfoPath isn&amp;#39;t allowed to access the local hardware, peripherals, or filesystem without running in full trust.&amp;nbsp; It doesn&amp;#39;t have any way of knowing at compile time that you are going to try to access a peripheral, and that&amp;#39;s why it gets upset when the code is running.&lt;/p&gt;</description></item><item><title>Re: Infopath code error</title><link>https://www.infopathdev.com:443/forums/thread/66540.aspx</link><pubDate>Fri, 13 May 2011 19:43:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66540</guid><dc:creator>Bebhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=66540</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thank you for the reply.&amp;nbsp; I haven&amp;#39;t been able to get it to full trust yet, I&amp;#39;m trying to get a trusted root certificate, but&amp;nbsp;I know I&amp;#39;ve tried putting things in the code before that required full trust and it threw an error about needing full trust before I could even run it.&amp;nbsp; This one seems to be some kind of run time error...&amp;nbsp; I&amp;#39;m thinking it probably has something to do with the .dll I&amp;#39;m referencing because I just pulled it out of their example and imported it into my code; I don&amp;#39;t really know anything about assemblies or if I did it properly...&amp;nbsp; It recognizes the reference in the code but I don&amp;#39;t know if I needed to do something else to make it work as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Infopath code error</title><link>https://www.infopathdev.com:443/forums/thread/66505.aspx</link><pubDate>Thu, 12 May 2011 21:13:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66505</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=66505</wfw:commentRss><description>&lt;p&gt;Kind of a longshot, but have you tried modifying the form&amp;#39;s security settings, so the template is full trust?&lt;/p&gt;</description></item><item><title>Infopath code error</title><link>https://www.infopathdev.com:443/forums/thread/66467.aspx</link><pubDate>Wed, 11 May 2011 19:16:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66467</guid><dc:creator>Bebhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=66467</wfw:commentRss><description>&lt;p&gt;Hello,&amp;nbsp;I&amp;#39;m trying to get my form to work with a topaz signature pad.&amp;nbsp; Anyway I&amp;#39;m getting an error when I debug my form when I add this line to my code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;#39;internal Topaz.SigPlusNET sigPlus = new Topaz.SigPlusNET();&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure if anyone will have any experience with this, but I&amp;#39;ve looked around and seen this error pop up for other issues so I&amp;#39;m hoping someone will have seen this at some point or might have some insight.&amp;nbsp; Anyway the error I get on startup is this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;InfoPath cannot open the selected form because of an error in the form&amp;#39;s code.&lt;br /&gt;System.Reflection.TargetInvocationException, mscorlib&lt;/p&gt;
&lt;p&gt;System.Reflection.TargetInvocationException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.Reflection.TargetInvocationException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; System.IO.FileLoadException: Could not load file or assembly &amp;#39;SigPlusNET, Version=1.1.3358.14336, Culture=neutral, PublicKeyToken=6aef07010bb0624f&amp;#39; or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)&lt;br /&gt;File name: &amp;#39;SigPlusNET, Version=1.1.3358.14336, Culture=neutral, PublicKeyToken=6aef07010bb0624f&amp;#39; ---&amp;gt; System.Security.Policy.PolicyException: Required permissions cannot be acquired.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet&amp;amp; denied, Boolean checkExecutionPermission)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet&amp;amp; denied, Int32&amp;amp; securitySpecialFlags, Boolean checkExecutionPermission)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at EDCR_After_Customization_.FormCode..ctor(IRemoteArgumentArrayContract initArgs)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct&amp;amp; signature, IntPtr declaringType)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String assemblyName, String className, IRemoteArgumentArrayContract initArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String assemblyName, String className, IRemoteArgumentArrayContract initArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutor`1.Execute(String assemblyName, String className, IRemoteArgumentArrayContract args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.VisualStudio.Tools.Applications.EntryPointAdapter..ctor(IRemoteArgumentArrayContract initArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct&amp;amp; signature, IntPtr declaringType)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.ConstructorInfo.Invoke(Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String assemblyName, String className, IRemoteArgumentArrayContract initArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutorInternal.System.AddIn.IAddInExecutorInternal.Execute(String assemblyName, String className, IRemoteArgumentArrayContract initArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.IAddInExecutorInternal.Execute(String assemblyString, String className, IRemoteArgumentArrayContract args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.AddIn.AddInExecutor`1.Execute(String assemblyName, String className, IRemoteArgumentArrayContract args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.VisualStudio.Tools.Applications.Internal.ExceptionFilter.ExceptionFilterHelper.ExecuteCustomization(AddInExecutor`1 executor, String assemblyName, String className, IRemoteArgumentArrayListContract args, IExceptionFilterCallback callback)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.VisualStudio.Tools.Applications.AddInImpl.AttemptInternalLoad(IAppDomainBindingContract appDomainBinding, String appBase, String configFile, PermissionSet topOfStackPermission, StrongName[] strongNameAssemblies)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I notice it mentions something about permissions in there, but I really don&amp;#39;t know what to make of this.&amp;nbsp; The reference is signed according to the properties...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help!&lt;/p&gt;
&lt;p&gt;Seb&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>