<?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: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator</title><link>https://www.infopathdev.com:443/forums/thread/69465.aspx</link><pubDate>Sun, 21 Aug 2011 14:40:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69465</guid><dc:creator>Ramu55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69465.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69465</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Karsten,&lt;/p&gt;&lt;p&gt;Thank you for your response. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I do have code behind, and all of the assemblies I have have been tagged for allowing partially trusted callers.&lt;/p&gt;&lt;p&gt;I tried publishing my forms on otther vms/environments and it worked, finally after doing some more log reading and reading on technet I was able to get it working by upgrading the timeout value of the user code service.&lt;/p&gt;&lt;p&gt;SPUserCodeService.Local.WorkerProcessExecutionTimeout = 40; //default is 30 seconds&lt;/p&gt;&lt;p&gt;It depends on the performance of the particular environment, hence on a multi-server farm I was not getting this error, while on vm it was failing.&amp;nbsp;
&lt;/p&gt;&lt;p&gt;Check this MSDN article http://msdn.microsoft.com/en-us/library/gg615462.aspx. though generally one should consider consulting the sharepoint admins before changing any of these values on production environment.&lt;/p&gt;&lt;p&gt;thanks and regards&lt;/p&gt;&lt;p&gt;Ramu &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator</title><link>https://www.infopathdev.com:443/forums/thread/69463.aspx</link><pubDate>Sat, 20 Aug 2011 16:59:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69463</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69463</wfw:commentRss><description>&lt;p&gt;Hello Ramu55,&lt;/p&gt;&lt;p&gt;even though I have not a &amp;quot;ready-to-run&amp;quot; solution for this problem I will try to help a little bit..&lt;/p&gt;&lt;p&gt;This error occurs because of some code in a sandbox which is partially trusted is calling a dll in GAC which is having full trust. And the solution to this is, in the code which goes as dll in the gac inside it&amp;nbsp;just decorate the namespace with the following line:&lt;br /&gt;&lt;br /&gt;&lt;font face="courier new,courier"&gt;[assembly: AllowPartiallyTrustedCallers]&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="courier new,courier"&gt;&lt;font face="Arial"&gt;I don´t know if you use &amp;quot;code-behind&amp;quot; in your form but if you do you have to consider that you can´t use all of the objects in .Net framework. For instance (as I have heard) you can´t use SPSite or SPWeb object but this statement is with no guarantee as I´ve never tried it for myself. A complete list of limitations in&amp;nbsp;a sandboxed solution will you find here:&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="courier new,courier"&gt;&lt;a href="http://blogs.salmanghani.info/?p=310"&gt;http://blogs.salmanghani.info/?p=310&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="courier new,courier"&gt;&lt;font face="Arial"&gt;Hope that helps a little bit..&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="courier new,courier"&gt;&lt;font face="Arial"&gt;Regards,&lt;/font&gt;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="courier new,courier"&gt;&lt;/font&gt;</description></item><item><title>Re: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator</title><link>https://www.infopathdev.com:443/forums/thread/69462.aspx</link><pubDate>Sat, 20 Aug 2011 14:28:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69462</guid><dc:creator>Ramu55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69462</wfw:commentRss><description>did you find a solution for this?</description></item><item><title>Re: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator</title><link>https://www.infopathdev.com:443/forums/thread/67301.aspx</link><pubDate>Mon, 13 Jun 2011 18:21:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67301</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67301</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Have you spoken to a SharePoint admin? It sounds like a SharePoint issue; perhaps an admin turned off sandboxing.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator</title><link>https://www.infopathdev.com:443/forums/thread/67191.aspx</link><pubDate>Wed, 08 Jun 2011 19:45:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67191</guid><dc:creator>chasquad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67191</wfw:commentRss><description>&lt;p&gt;Previously working IFS form now displays this error message when opening:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font face="Times New Roman"&gt;The custom code in the form cannot be run. This 
functionality may be deactivated on the server. For more information, contact 
the server farm administrator.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;-&amp;nbsp; - Unhandled exception was thrown by the sandboxed code wrapper&amp;#39;s Execute method in the partial trust app domain: An unexpected error has occurred. - Monitored process &amp;quot;ipc://78303e5f-5df4-4d98-b04a-5b720bf6167f:7000&amp;quot; has encountered an unhandled exception while executing user code. - Inner Exception: Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: Timeout while waiting for request to complete within the sandboxed appdomain.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;FormServer Partial Trust - remote execution for solution 6fd1ce30-8245-4019-a82d-56b8b3d57bbc from site b0348e1d-9292-4126-8c06-643f580f2978 failed with exception Microsoft.SharePoint.UserCode.SPUserCodeSolutionExecutionFailedException: Unhandled exception was thrown by the sandboxed code wrapper&amp;#39;s Execute method in the partial trust app domain: An unexpected error has occurred. ---&amp;gt; Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: Timeout while waiting for request to complete within the sandboxed appdomain.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Server stack trace:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeAppDomain.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxyForShim.ExecuteInternal(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxy.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32methodPtr, Boolean fExecuteInContext, Object[]&amp;amp; outArgs)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception rethrown at [0]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.ExecuteDelegate.EndInvoke(IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, SPUserToken userToken, String currentAffinity, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;Microsoft.SharePoint.UserCode.SPUserCodePoolableProcessConnection.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, SPUserToken userToken, String affinity, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeExecutionHost.Execute(Type userCodeWrapperType, Guid siteCollectionId, SPUserToken userToken, String affinity, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp;amp; outArgs)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)&amp;nbsp;&amp;nbsp;&amp;nbsp; Exception rethrown at [1]:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.Administration.ISPUserCodeExecutionHostProxy.Execute(Type userCodeWrapperType, Guid siteCollectionId, SPUserToken userToken, String affinityBucketName, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeExecutionManager.Execute(Type userCodeWrapperType, SPSite site, SPUserCodeExecutionContext executionContext)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Server.DocumentLifetime.PartialTrustExecutorHelper.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;PlayEventLogInRemote&amp;gt;b__0(), inner exception Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: Timeout while waiting for request to complete within the sandboxed appdomain.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext).&lt;/p&gt;&lt;p&gt;This is a sandbox solution deployment to a SharePoint 2010 Form Library.&amp;nbsp; I&amp;#39;ve attached the xsn.&amp;nbsp; Any help is appreciated.&lt;/p&gt;</description></item></channel></rss>