<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calls to this namespace from these methods are not permitted.</title><link>https://www.infopathdev.com:443/forums/thread/23920.aspx</link><pubDate>Tue, 23 Oct 2007 10:19:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23920</guid><dc:creator>adamrharding</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23920</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Now I am no good at code but I would say the clue to the problem lies in the first statement that states the form tries to utilise semi-trust which is not allowed.&lt;/p&gt;
&lt;p&gt;The detail, I think, is at the bottom, saying the problem is with GetCurrent() at FormEvents_OnLoad at InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad&lt;/p&gt;
&lt;p&gt;I do not know how to solve it but I hoep I may have provided you with a bit of an&amp;nbsp;insight.&lt;/p&gt;
&lt;p&gt;Fingers crossed&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item><item><title>Calls to this namespace from these methods are not permitted.</title><link>https://www.infopathdev.com:443/forums/thread/23883.aspx</link><pubDate>Mon, 22 Oct 2007 09:47:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23883</guid><dc:creator>collinvermeulen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=23883</wfw:commentRss><description>&lt;p&gt;Can anyone help with the following error?&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;System.InvalidOperationException&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;The _Startup or _Shutdown method in this 
form&amp;#39;s code contains one or more calls to members of the 
Microsoft.Office.Interop.InfoPath.SemiTrust namespace. Calls to this namespace 
from these methods are not permitted.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, 
SignatureStruct&amp;amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle 
typeOwner)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp; &amp;nbsp;at 
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, 
Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle 
typeOwner)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, 
Binder binder, Object[] parameters, CultureInfo culture, Boolean 
skipVisibilityChecks)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, 
Binder binder, Object[] parameters, CultureInfo 
culture)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder 
binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, 
CultureInfo culture, String[] namedParams)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at System.Type.InvokeMember(String name, 
BindingFlags invokeAttr, Binder binder, Object target, Object[] args, 
CultureInfo culture)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
Microsoft.Office.Interop.InfoPath.SemiTrust.InfoPathOMHelper.Run(String 
assemblyFullPathName)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;System.Security.SecurityException&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;Request for the permission of type 
&amp;#39;System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; 
failed.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
System.Security.Principal.WindowsIdentity.GetCurrent()&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
Scorecard.FormCode.FormEvents_OnLoad(DocReturnEvent 
e)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font color="navy" face="Arial" size="2"&gt;&lt;span style="font-size:10pt;color:navy;"&gt;&amp;nbsp;&amp;nbsp; at 
Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad(DocReturnEvent 
pEvent)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>