<?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: Corrupt Code Access Security (CAS) Registry Setting</title><link>https://www.infopathdev.com:443/forums/thread/18188.aspx</link><pubDate>Wed, 20 Sep 2006 00:57:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18188</guid><dc:creator>Shiraz Cupala</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18188</wfw:commentRss><description>Note the InfoPath Error Message that users get that likely indicates this issue is as follows: ========== InfoPath cannot open the following file... Form template: http://yourserver/folder/filename.xsn === InfoPath cannot open the selected form because of an error in the form&amp;#39;s code. The form code could not be loaded because of a security restriction. That assembly does not allow partially trusted callers. === It is the last line which is the teltale sign of this CAS setting issue.</description></item><item><title>Corrupt Code Access Security (CAS) Registry Setting</title><link>https://www.infopathdev.com:443/forums/thread/18031.aspx</link><pubDate>Sat, 16 Sep 2006 07:05:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18031</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18031</wfw:commentRss><description>If the InfoPath AppDomain control assembly does not have full trust permissions &amp;ndash; which it will on a normal machine, InfoPath may fail to open. This may be due to a corrupted CAS. It only happen with InfoPath solutions that contain managed code. Resetting CAS settings (caspol &amp;ndash;rs) on the machine with the problem is the easiest way to fix the problem so that the form opens correctly. Although it&amp;#39;s a bad idea, some applications may modify CAS settings and that is the likely cause for corruption. Here are the steps to diagnose / fix the problem: 1. Click Start-&amp;gt;Run and enter &amp;quot;cmd&amp;quot;. This opens a command prompt. 2. In the command prompt, enter &amp;quot;cd %windir%\microsoft.net\framework\v2.0.50727&amp;quot; (without double quotes) to navigate to the directory containing the CAS tools 3. Enter &amp;quot;caspol &amp;ndash;l &amp;gt; %SystemDrive%\cas.txt&amp;quot; to dump the CAS settings 4. Enter &amp;quot;notepad cas.txt&amp;quot; to view the output in notepad. By default, the top of the Code Groups section should read, &amp;ldquo;1. All code: Nothing&amp;rdquo;. Corrupted CAS settings might read something like, &amp;ldquo;1. All code: ATP code group&amp;rdquo;. 5. If you want to reset the user&amp;rsquo;s CAS settings, enter &amp;quot;caspol &amp;ndash;rs&amp;quot; in the command prompt. Note: Resetting user&amp;rsquo;s CAS settings may not be the proper fix for this because it may break other applications (especially the one that broke InfoPath! :). Please use at your own risk.</description></item></channel></rss>