<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx</link><description>Since network shares by default only get LocalIntranet permissions, it's relatively common to want to use CasPol to fully trust some shares that you control and know are safe. However, CasPol syntax being what it is, the command to do this isn't immediately</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#416451</link><pubDate>Wed, 11 May 2005 16:58:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:416451</guid><dc:creator>corbin</dc:creator><description>Shawn,&lt;br&gt;&lt;br&gt;I've added FullTrust to a share where we launch an application and it takes a heck of a long time.  Are there factors (other than the network speed / latency) that would slow down a .NET application starting from a network share?&lt;br&gt;&lt;br&gt;Thanks!  BTW very helpful blog entry.</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#443713</link><pubDate>Wed, 27 Jul 2005 07:27:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443713</guid><dc:creator>Uwe</dc:creator><description>Just tried &lt;br&gt;&lt;br&gt;CasPol.exe -m -ag 1.2 -url file://ShawnFa-Srv/Tools/* FullTrust&lt;br&gt;&lt;br&gt;and got the message&lt;br&gt;&lt;br&gt;Are you sure you want to perform this operation? (yes/no)&lt;br&gt;&lt;br&gt;which I had to confirm with YES, of course.&lt;br&gt;&lt;br&gt;I thought I can use CasPol.exe to write a custom setup action to perform this update, but I don't want the user to be displayed this message. Any chance to do the same, WITHOUT the message?</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#443976</link><pubDate>Wed, 27 Jul 2005 23:34:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443976</guid><dc:creator>shawnfa</dc:creator><description>Hi Uwe -- check out: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/shawnfa/archive/2005/07/27/443975.aspx"&gt;http://blogs.msdn.com/shawnfa/archive/2005/07/27/443975.aspx&lt;/a&gt;  :-)&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#456230</link><pubDate>Thu, 25 Aug 2005 17:35:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:456230</guid><dc:creator>Nick Webb</dc:creator><description>Regarding the -url parameter (e.g.)&lt;br&gt;&lt;br&gt;CasPol.exe -pp off -m -ag 1.2 -url file://ShawnFa-Srv/Tools/* FullTrust&lt;br&gt;&lt;br&gt;If EXE's are placed in subfolders under the root of the share are they automatically granted FullTrust? (e.g. //ShawnFa-Srv/Tools/subFolder/someprog.exe )&lt;br&gt;&lt;br&gt;If yes, then I'm doing something wrong because they're not on my system?</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#491768</link><pubDate>Fri, 11 Nov 2005 16:52:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:491768</guid><dc:creator>Preben</dc:creator><description>Very useful, thanks.&lt;br&gt;&lt;br&gt;Why cant Microsoft be so clear in the doc.&lt;br&gt;&lt;br&gt;BTW: It can be nice to give the code group a name: add: -name &amp;quot;name&amp;quot; to secpol.exe cmd.line.&lt;br&gt;&lt;br&gt;</description></item><item><title>we don't allow partially-trusted checkin policies in V1</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#529915</link><pubDate>Sat, 11 Feb 2006 02:13:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:529915</guid><dc:creator>James Manning's blog</dc:creator><description>One of the V1 decisions we made was to not allow partially trusted callers in our policy framework.&amp;amp;amp;nbsp;...</description></item><item><title>re: Using CasPol to Fully Trust a Share for source</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#582931</link><pubDate>Tue, 25 Apr 2006 13:40:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:582931</guid><dc:creator>Mickeyt Perlstein</dc:creator><description>I am trying to add a full trust to a share,&lt;br&gt;so the VS will allow me to run a solution from a share.&lt;br&gt;&lt;br&gt;the Share is located at&lt;br&gt;\\storage\Share\Departments\Development\Projects\&lt;br&gt;and the Solution knows it as&lt;br&gt;S:\Projects\&lt;br&gt;&lt;br&gt;what do i do ?&lt;br&gt;Your solutions didn't work for me.&lt;br&gt;&lt;br&gt;Mickey&lt;br&gt;&lt;br&gt;mick@interlect.co.il</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#583299</link><pubDate>Tue, 25 Apr 2006 19:20:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:583299</guid><dc:creator>shawnfa</dc:creator><description>You have to trust the share with the name that the managed code sees, so if it's accessable via S:\Projects your URL would be file://s:\projects&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#658149</link><pubDate>Thu, 06 Jul 2006 21:30:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:658149</guid><dc:creator>xmasangel</dc:creator><description>Folks,&lt;br&gt;I have tried to turn .Net security off...no dice&lt;br&gt;I have tried to submit an edited security file with security and execution checking off... no dice still says security is on&lt;br&gt;I have added a group to the intranet as indicated in the blog above...put FullTrust still no access... the error that I get indicates that the assembly is not trusted.&lt;br&gt;I don't want to have to register every single executable or is that the only way to solve the problem?:</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#659255</link><pubDate>Fri, 07 Jul 2006 21:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:659255</guid><dc:creator>shawnfa</dc:creator><description>Are you sure you're using a matching caspol and runtime? &amp;nbsp;Settings applied to v1.1 don't affect apps running against v2.0. &amp;nbsp;Similarly v2.0 32bit and v2.0 64bit are seperate.&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>Sandboxed Applications Can’t Elevate Their Own Permissions</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#664791</link><pubDate>Thu, 13 Jul 2006 21:43:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:664791</guid><dc:creator>.Net Security Blog</dc:creator><description>Every once in a while someone will ask how they can do something similar to these caspol commands from...</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#666051</link><pubDate>Fri, 14 Jul 2006 23:10:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:666051</guid><dc:creator>Jesse Albert</dc:creator><description>Ok, I've got a script I made to fully trust a share using caspol. &amp;nbsp;The problem is that it will only work on machines that have the SDK installed. &amp;nbsp;I can open the security.config file and I can see the group, but the code will not run. &amp;nbsp;The command line I'm running to get the permissions is:&lt;br&gt;&lt;br&gt;call %windir%\Microsoft.NET\Framework\v2.0.50727\caspol -q -m -ag 1.2 -url %1\* FullTrust -n %1 -d &amp;quot;FullTrust granted to: &amp;nbsp;%1&amp;quot;&lt;br&gt;&lt;br&gt;where %1 is the server share (eg \\server01\share)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On a machine where I do have the .NET Framework 2.0 configuration utility, this works like a charm. &amp;nbsp;On similar machine without this, no dice. &amp;nbsp;Any clues that can point me in the right direction?&lt;br&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#669664</link><pubDate>Tue, 18 Jul 2006 16:58:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:669664</guid><dc:creator>Jesse Albert</dc:creator><description>That link lead me to check some other things out. &amp;nbsp;Since I control the code I was able to check what kind of permissions were being requested.&lt;br&gt;&lt;br&gt;Turned out that the computer with the SDK installed was running the code from the Intranet group. &amp;nbsp;While the computer without the SDK was running it from the Internet group. &amp;nbsp;Both computers are on the domain with the same login credentials and running the code from a network drive, so I'm a bit perplexed as to what's causing the difference, however this provides a fix since none of the end users for the app will have the SDK. &amp;nbsp;Problem worked around until I test it out a bit more ;) &amp;nbsp;Thanks!&lt;br&gt;&lt;br&gt;-Jesse</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#674255</link><pubDate>Fri, 21 Jul 2006 23:50:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:674255</guid><dc:creator>Mike Taverne</dc:creator><description>Shawn -&lt;br&gt;&lt;br&gt;I want to use an ActiveX control written in C# 2.0 in an intranet ASP.NET application.&lt;br&gt;&lt;br&gt;The control downloads fine on my computer, but only after I used the 2.0 Configuration tool to adjust my LocalIntranet zone security to FullTrust. My IE zone security setting for LocalIntranet is at the default, Medium-Low.&lt;br&gt;&lt;br&gt;End users have the .NET 2.0 Framework installed, but not the 2.0 Configuration applet. Even if they did, we wouldn't want them to manually change their configuration.&lt;br&gt;&lt;br&gt;What I'm wondering is how best to deploy security policy? Can we run CasPol on end user PC's to grant FullTrust to our intranet application? I have tried various combinations of parameters to CasPol, with no luck. &lt;br&gt;&lt;br&gt;Thanks, Mike&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#679320</link><pubDate>Wed, 26 Jul 2006 22:03:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:679320</guid><dc:creator>shawnfa</dc:creator><description>Caspol can be run on the users machine, or you can install the configuration wizard and push an MSI out to each of them. &amp;nbsp;Since you're using ActiveX, ClickOnce won't help you out, but that's generally where I'll point people to shipping v2.0 apps off of a share.&lt;br&gt;&lt;br&gt;-Shawn</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#986950</link><pubDate>Mon, 06 Nov 2006 05:04:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:986950</guid><dc:creator>DaveB</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm having trouble with the caspol command. &amp;nbsp;Our developers are build a new app based around sharepoint and need us to register some components on every workstation. For business reasons our desktop environment is locked down - no power user access etc.&lt;/p&gt;
&lt;p&gt;I have 3x commands that i need to run that I have listed below in order:&lt;/p&gt;
&lt;p&gt;Command 1:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol&amp;quot; -quiet -m -ag &amp;quot;LocalIntranet_Zone&amp;quot; -url &amp;quot;http://&amp;lt;my serer name&amp;gt;/*&amp;quot; Nothing -n &amp;quot;My App Data Folder&amp;quot;&lt;/p&gt;
&lt;p&gt;Command 2:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol&amp;quot; -quiet -m -ag &amp;quot;My App Data Folder&amp;quot; -custom &amp;quot;C:\Program Files\Microsoft Office\OFFICE11\ADDINS\msosec.xml&amp;quot; FullTrust -n &amp;quot;My App Data Documents&amp;quot; -d &amp;quot;Grants full trust&amp;quot;&lt;/p&gt;
&lt;p&gt;Command 3:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol&amp;quot; -quiet -m -ag &amp;quot;LocalIntranet_Zone&amp;quot; -url &amp;quot;\\My Server Name\vsto\*&amp;quot; FullTrust -n &amp;quot;My App Development Assembly&amp;quot; -d &amp;quot;Grants full trust&amp;quot;&lt;/p&gt;
&lt;p&gt;Now when I run this at the command prompt it seems to be all general goodness, I can access my site and our developers are quite happy, but the problem is command 2. After executing this I get prompted with the following message:&lt;/p&gt;
&lt;p&gt;You have added the following assembly to the policy system: msosec 7.0.5000.0&lt;/p&gt;
&lt;p&gt;If you do not add this assembly to the full trust list, load errors and other unexpected behavior can occur. &amp;nbsp;However, adding the assembly to the full trust list gives all code in this assembly potentially dangerous abilities. &amp;nbsp;Do you want to add this assembly to the full trust list? (yes/no)&lt;/p&gt;
&lt;p&gt;My objective is to run this command on a pile of workstations bundled up in an SMS job. I don't need this prompt becasue when my script executes silently the user can't see or respond to this message.&lt;/p&gt;
&lt;p&gt;I have tried nearly every option on the caspol -help screen for turning stuff off but have hit a blank - any ideas gratefully accepted&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;DaveB&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1001179</link><pubDate>Mon, 06 Nov 2006 19:37:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1001179</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;Normally you would use caspol -pp off to cause caspol to no longer prompt for confirmation. &amp;nbsp;However, it appears that there is a bug where caspol does not respect that setting when adding an assembly to the full trust list.&lt;/p&gt;
&lt;p&gt;One workaround is that you could pre-populate the workstation's full trust lists with the msosec.dll assembly, since caspol will not prompt if the assembly is already on the list.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1380217</link><pubDate>Fri, 29 Dec 2006 19:19:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1380217</guid><dc:creator>Jayshree Gohil</dc:creator><description>&lt;p&gt;Awesome, very straight forward n clear explanation. Kudos to Shawn&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1412494</link><pubDate>Thu, 04 Jan 2007 23:37:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1412494</guid><dc:creator>Jeff Hayward</dc:creator><description>&lt;p&gt;We used caspol.exe on a server functioning as Windows Terminal Services. &amp;nbsp;caspol.exe was run on that server to grant full trust to an application on a second server. This worked fine for a while (and still does for most users). However, when we add new users to the domain and give them access to this machine, they cannot run the application (they get the &lt;/p&gt;
&lt;p&gt;&amp;quot;...has encountered a problem and needs...&amp;quot; message indicating that the trust does not exist. &amp;nbsp;We have been unsuccessful getting any new users to be able to run the application. &amp;nbsp;If we remove .Net 2.0, reinstall, no users can run the application. &amp;nbsp;If we then run caspol.exe , the original set of users that could run the application can now run it again, but none of the new users can run it.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;-jeff&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1445444</link><pubDate>Wed, 10 Jan 2007 21:38:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1445444</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;One thought is that some users have modified their user-level security policy, and it is not granting the share full trust. &amp;nbsp;If you check the user level policy in caspol:&lt;/p&gt;
&lt;p&gt;caspol -u -lg&lt;/p&gt;
&lt;p&gt;It should show that AllCode gets FullTrust and nothing else.&lt;/p&gt;
&lt;p&gt;You can also try caspol -all -rsg &amp;lt;path to assembly on server&amp;gt;, which will dump out the groups that the CLR is matching when resolving policy for your server.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1488378</link><pubDate>Thu, 18 Jan 2007 14:15:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1488378</guid><dc:creator>Diederik</dc:creator><description>&lt;p&gt;How would one create a functioning grouppolicy for active directory use?&lt;/p&gt;
&lt;p&gt;We want to run a program from a share on 20 terminalservers, and i like to make just one setting :-)&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1490194</link><pubDate>Thu, 18 Jan 2007 23:09:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1490194</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Diederik,&lt;/p&gt;
&lt;p&gt;You'll need to use the MMC snap-in to export your security policy to an MSI file. &amp;nbsp;(Right click on the security policy and export to MSI should be an option). &amp;nbsp;Then you can deploy this MSI file to your domain. &amp;nbsp;The MSI does not conatin any merge logic however, it will literally overwrite the existing security policy with a copy of the policy from your local machine.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1770652</link><pubDate>Wed, 28 Feb 2007 00:09:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1770652</guid><dc:creator>Idriss</dc:creator><description>&lt;p&gt;Shawn&lt;/p&gt;
&lt;p&gt;just to be sure, so If I want to run a windows app over the network, I need to create a machine policy on that computer and then copy it to everyone pc that needs to access that program.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Idriss&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1846487</link><pubDate>Fri, 09 Mar 2007 21:15:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1846487</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Yep Idriss -- that's correct, you need to deploy that policy to every client machine that will run your application. &amp;nbsp;Alternatively you could look at ClickOnce deployment, which does not rely on machine security policy.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1889027</link><pubDate>Thu, 15 Mar 2007 21:53:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1889027</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;Hi Shawn&lt;/p&gt;
&lt;p&gt;I am trying to use CasPol to fully trust a share. I have .Net installed on my PC. When I issue the folowing command&lt;/p&gt;
&lt;p&gt;C:\&amp;gt;caspol.exe -m -ag 1.2 -url file:\\uhscorp\sustain/Tools/* FullTrust&lt;/p&gt;
&lt;p&gt;The output I get is &lt;/p&gt;
&lt;p&gt;Microsoft (R) .NET Framework CasPol 1.0.3705.6018&lt;/p&gt;
&lt;p&gt;Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.&lt;/p&gt;
&lt;p&gt;ERROR: Invalid option: -m&lt;/p&gt;
&lt;p&gt;Usage: caspol &amp;lt;option&amp;gt; &amp;lt;args&amp;gt; ...&lt;/p&gt;
&lt;p&gt;caspol -m[achine]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Modifier that makes additional commands act on the machine level&lt;/p&gt;
&lt;p&gt;caspol -u[ser]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Modifier that makes additional commands act on the user level&lt;/p&gt;
&lt;p&gt;caspol -en[terprise]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Modifier that makes additional commands act on the enterprise level&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Why am I getting this error and how can make the command to work? Any help is greatly appreciated. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sai&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1890227</link><pubDate>Fri, 16 Mar 2007 01:36:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1890227</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Sai,&lt;/p&gt;
&lt;p&gt;I see this most often if the caspol command line has been copied and pasted from a program such as Word or Outlook which replaces a - with a fancier character that looks similar to -, but is not the same. &amp;nbsp;I recommend typing the command line by hand to see if that solves your problem.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1894661</link><pubDate>Fri, 16 Mar 2007 16:35:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1894661</guid><dc:creator>Sai</dc:creator><description>&lt;p&gt;Hi Shawn&lt;/p&gt;
&lt;p&gt;You solved my problem. Now I understand that copy and paste does not work sometimes in cmd. Learnt a lesson here. You are the man. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sai&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1964348</link><pubDate>Tue, 27 Mar 2007 18:15:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1964348</guid><dc:creator>james</dc:creator><description>&lt;p&gt;Several people have commented about getting the (yes/no) prompt when using caspol. &amp;nbsp;Have we all forgotten the command line? &amp;nbsp;Simply echo y|caspol and the problem is solved&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#1989573</link><pubDate>Thu, 29 Mar 2007 20:24:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1989573</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;That will work, however caspol also has built-in functionality for that. &amp;nbsp;If you do:&lt;/p&gt;
&lt;p&gt;caspol -pp off&lt;/p&gt;
&lt;p&gt;It will suppress the prompt as well.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2012259</link><pubDate>Mon, 02 Apr 2007 17:21:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2012259</guid><dc:creator>johnf</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I need to run a VB.NET 2005 app as a logon script. &lt;/p&gt;
&lt;p&gt;Would it still be appropriate to grant &amp;quot;FullTrust&amp;quot; to the &amp;quot;\\server\netlogon&amp;quot; share? OR is there a better way?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2062004</link><pubDate>Mon, 09 Apr 2007 19:34:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2062004</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;You could certainly do that if you trust your internal network. &amp;nbsp;Another option would be to sign your scripts and trust the signature.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2153932</link><pubDate>Mon, 16 Apr 2007 16:53:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2153932</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I am trying to do my first .net install. &amp;nbsp;The program is to be used via a citrix environment. &amp;nbsp;I have run the caspol settings on the .exe's computer however I get the security message still. &amp;nbsp;How can I check to see where the security is being pulled from and can I check/run caspol when my program starts to set the appropriate security?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2177139</link><pubDate>Wed, 18 Apr 2007 19:20:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2177139</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Security policy must be updated on the machines that run the application, not the machine that hosts the application. &amp;nbsp;Otherwise malware would just say &amp;quot;trust me, Evil.exe is trusted!&amp;quot;.&lt;/p&gt;
&lt;p&gt;For the same reason, partial trust code cannot say &amp;quot;Hey, I'm trusted -- let me just elevate my permissions.&amp;quot; &amp;nbsp;Your best bet is to use ClickOnce to deploy your application.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2210377</link><pubDate>Fri, 20 Apr 2007 21:39:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2210377</guid><dc:creator>Ingo</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we use Windows Vista 32bit EE or BE and tried caspool for our (web-)development shares. Even though the command itself works fine and the share is correctly in the list of trusted locations, whysoever VS2005 is still believing that the share isn't trusted?!&lt;/p&gt;
&lt;p&gt;Do you have an idea what else we can try?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Ingo&lt;/p&gt;
&lt;p&gt;PS:&lt;/p&gt;
&lt;p&gt;We thought that somehow the domain policies might interfere and tried the same thing with a machine outside the domain but with proper access rights to the share - the result is the same.&lt;/p&gt;</description></item><item><title>Sandboxed Applications Can’t Elevate Their Own Permissions</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2231885</link><pubDate>Sun, 22 Apr 2007 14:06:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2231885</guid><dc:creator>Guy kolbis</dc:creator><description>&lt;p&gt;Recently I visited Toronto for Beta release of software I designed. As always with Beta versions, we&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2341120</link><pubDate>Mon, 30 Apr 2007 19:08:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2341120</guid><dc:creator>Hugo Dias</dc:creator><description>&lt;p&gt;Shawn, plz help me out&lt;/p&gt;
&lt;p&gt;im driving crazy..!!&lt;/p&gt;
&lt;p&gt;i've made a Console Application and copied the EXE to a shared folder in the network.&lt;/p&gt;
&lt;p&gt;The Console Application will be called from a JOB in SQL SERVER... and everytime the JOB calls the APP i getting an error:&lt;/p&gt;
&lt;p&gt;Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&lt;/p&gt;
&lt;p&gt;also&lt;/p&gt;
&lt;p&gt;Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&lt;/p&gt;
&lt;p&gt;The SQL SERVER and the shared folder are in the same machine...&lt;/p&gt;
&lt;p&gt;Now:&lt;/p&gt;
&lt;p&gt;the path to shared folder is:&lt;/p&gt;
&lt;p&gt;\\beta\Sql_temp&lt;/p&gt;
&lt;p&gt;the path to the program is&lt;/p&gt;
&lt;p&gt;\\beta\Sql_temp\AppCIDSca.exe&lt;/p&gt;
&lt;p&gt;i have done the command:&lt;/p&gt;
&lt;p&gt;caspol -addfulltrust \\beta\Sql_temp\AppCIDSca.exe&lt;/p&gt;
&lt;p&gt;and also tried the caspol -addgroup -url file:\\beta\Sql_temp/* FullTrust&lt;/p&gt;
&lt;p&gt;but i always get that error....&lt;/p&gt;
&lt;p&gt;what can i do...?&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2368814</link><pubDate>Wed, 02 May 2007 08:33:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2368814</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;We have recently installed .NET 2.0 to our web servers (3 in a cluster talking to a Network Share). We previously had to set each web server to have full trust permissions to the share for .NET 1.1 to work. However, it seems this has not helped for .NET 2.0&lt;/p&gt;
&lt;p&gt;If i run: CasPol.exe -m -ag 1.2 -url file://ShawnFa-Srv/Tools/* FullTrust&lt;/p&gt;
&lt;p&gt;will this resolve the problem for .NET 2.0 or do I need to add more parameters to the CasPol.exe?&lt;/p&gt;
&lt;p&gt;What is interesting is that .NET 2.0 applications work if they are created as Web Sites in VS 2005 and not Web Projects (compiling to a BIN).&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2463625</link><pubDate>Mon, 07 May 2007 17:07:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2463625</guid><dc:creator>srini</dc:creator><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;
&lt;p&gt;I have a c# 2.0 exe which has some file IO commands where it checks whether a file is there (File.Exists).&lt;/p&gt;
&lt;p&gt;When I copy this exe on a network share and run it, I get this error&lt;/p&gt;
&lt;p&gt;Request for the permission of type 'System.Security.Permissions.FileIOPermission&lt;/p&gt;
&lt;p&gt;, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' f&lt;/p&gt;
&lt;p&gt;ailed.&lt;/p&gt;
&lt;p&gt;I have given Full Trust like what you have specified and the command works great, why do I get this error message&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2466415</link><pubDate>Mon, 07 May 2007 21:31:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2466415</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Srini,&lt;/p&gt;
&lt;p&gt;You get the error because by default Intranet applications do not have rights to check for files on the local machine. &amp;nbsp;Once you elevate the permissions using caspol, it has permission and the code succeeds.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2466442</link><pubDate>Mon, 07 May 2007 21:34:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2466442</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Matt,&lt;/p&gt;
&lt;p&gt;You'll of course need to substitute \\shawnfa-srv\tools\* with your own server and share :-) &amp;nbsp;Since each CLR version has its own policy you'll need to make the changes to every version of the CLR (1.1, 2.0 32 bit, 2.0 64 bit) that you intend to run ASP.NET applications against.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2466715</link><pubDate>Mon, 07 May 2007 21:55:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2466715</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Hugo,&lt;/p&gt;
&lt;p&gt;You don't want the -addfulltrust command, this is for setting up policy assemblies and is obsolete in v2.0 of the framework. &amp;nbsp;One thing to check with your other command line is to make sure that you're matching the caspol version to hte runtime version that your assemblies will be running against. &amp;nbsp;You can also use caspol -rsg &amp;lt;assembly&amp;gt; to see what code groups your asembly is matching.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2466908</link><pubDate>Mon, 07 May 2007 22:07:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2466908</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Hi Ingo,&lt;/p&gt;
&lt;p&gt;I've noticed that behavior too :-) &amp;nbsp;Unfortunately VS isn't smart enough to do a policy resolution against your assembly (and it really can't since it doesn't know the full set of evidnece for the assembly until it is loaded). &amp;nbsp;Because of that it will give you the warning whenever you load any code from a network share. &amp;nbsp;If you've setup policy properly, it should be safe to ignore.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2504239</link><pubDate>Wed, 09 May 2007 17:38:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2504239</guid><dc:creator>A K S</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i'm getting error System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&lt;/p&gt;
&lt;p&gt;can anybody help help me out by setting up security trust using caspol, i'm using asp.net 2.0 files resides on UNC network.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;A K S&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#2508532</link><pubDate>Wed, 09 May 2007 22:29:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2508532</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;ASP.NET grants AspNetHostingPermission within AppDomains that it controls. &amp;nbsp;That error indicates that you're attempting to access an API that is only meant to be accessed from within an ASP.NET application from outside ASP.NET.&lt;/p&gt;
&lt;p&gt;If you are in an ASP.NET application, another possibility is that the ASP.NET trust levels got corrupted and the hosting permission is no longer being granted there -- in that case you'll have to check the ASP.NET forums to find an ASP.NET expert that can help you reset your settings.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>sam.mcgeown.co.uk  &amp;raquo; Blog Archive   &amp;raquo; Visual Studio Project Location Not Trusted</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#3113902</link><pubDate>Wed, 06 Jun 2007 13:18:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3113902</guid><dc:creator>sam.mcgeown.co.uk  » Blog Archive   » Visual Studio Project Location Not Trusted</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://sam.mcgeown.co.uk/?p=7"&gt;http://sam.mcgeown.co.uk/?p=7&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Full trust</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9444606</link><pubDate>Thu, 26 Feb 2009 00:28:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9444606</guid><dc:creator>Chris V V</dc:creator><description>&lt;p&gt;I had alot of trouble getting this working, but it finally did when I used this command: &lt;/p&gt;
&lt;p&gt;caspol -q -machine -addgroup 1 -url file://z:/* FullTrust -name &amp;quot;Z Drive&amp;quot;&lt;/p&gt;
&lt;p&gt;caspol.exe is located at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 also you need to restart devenv.exe after doing this. &lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9496453</link><pubDate>Sat, 21 Mar 2009 23:45:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9496453</guid><dc:creator>Aron</dc:creator><description>&lt;p&gt;Thank you &amp;quot;Full trust&amp;quot;! I've spent several hours on this, being in need of running .net assemblies from my development-server share.&lt;/p&gt;
&lt;p&gt;caspol -q -machine -addgroup 1 -url file://z:/* FullTrust -name &amp;quot;Z Drive&amp;quot;&lt;/p&gt;
&lt;p&gt;worked like a charm. Thank you again!&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9573418</link><pubDate>Tue, 28 Apr 2009 14:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9573418</guid><dc:creator>sth_Weird</dc:creator><description>&lt;p&gt;hmm, what I miss and haven't been able to find anywhere on the net yet is a list of all possible trust levels.&lt;/p&gt;
&lt;p&gt;as for me, I'm trying to develop a script that automatically sets the trust level, problem is that I've managed &amp;nbsp;to set it to full trust once and now my program on the net always works. I have not managed to set a smaller level that makes my program crash any more. But I need this to test my script. Can anybody help?&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9601995</link><pubDate>Mon, 11 May 2009 11:59:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9601995</guid><dc:creator>Srinath</dc:creator><description>&lt;p&gt;Thank you very much it really worked i struggled around a day to fix this &lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9615999</link><pubDate>Thu, 14 May 2009 16:48:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9615999</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Shawn, after using sn.exe I can add my assembly on my local box. &amp;nbsp;But I still get the &amp;quot;...must have a strong name...&amp;quot; error on the server. &amp;nbsp;Tried caspol. &amp;nbsp;It claimed success, but the assembly is not there in the Config manager. &amp;nbsp;Here's the command-line from caspol:&lt;/p&gt;
&lt;p&gt;D:\MyDir&amp;gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe /af MyNewDLL.dll&lt;/p&gt;
&lt;p&gt;Microsoft (R) .NET Framework CasPol 2.0.50727.3053&lt;/p&gt;
&lt;p&gt;Copyright (c) Microsoft Corporation. &amp;nbsp;All rights reserved.&lt;/p&gt;
&lt;p&gt;Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.&lt;/p&gt;
&lt;p&gt;The operation you are performing will alter security policy.&lt;/p&gt;
&lt;p&gt;Are you sure you want to perform this operation? (yes/no)&lt;/p&gt;
&lt;p&gt;yes&lt;/p&gt;
&lt;p&gt;Success&lt;/p&gt;
&lt;p&gt;Did I miss a step somewhere?&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9634325</link><pubDate>Fri, 22 May 2009 00:12:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634325</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;You shouldn't be using the full trust list to do this - as caspol is warning you, that list is no longer used as of v2.0 of the .NET Framework. &amp;nbsp; Instead, you'll want to use one of the other options such as the URL membership condition that I show in the example.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9634335</link><pubDate>Fri, 22 May 2009 00:19:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634335</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;There's no such thing as &amp;quot;all the possible trust levels&amp;quot;. &amp;nbsp; .NET 3.5 SP1 ships with 6 predefined permission sets - (in decreasing order) FullTrust, Everything, LocalIntranet, Internet, ExecuteOnly, and Nothing. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, anyone can make their own permission sets with different trust levels. &amp;nbsp;For instance, ASP.NET addded Low, Medium, and High trust. &amp;nbsp;SQL Server has their three trust buckets as well.&lt;/p&gt;
&lt;p&gt;Additionally, anyone can define their own custom permissions to further expand the possbible list of permission sets. &amp;nbsp;So, what you end up with, is an infinite theoretical combiation of permsision sets.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9674697</link><pubDate>Mon, 01 Jun 2009 07:52:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9674697</guid><dc:creator>Steve-o</dc:creator><description>&lt;p&gt;I'm running the Visual Studio 2008 in a VMWARE instance of Vista Ultimate and I have a mapped drive Projects (B:\) that I'm trying to use caspol on to allow fulltrust for all projects I create. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've used:&lt;/p&gt;
&lt;p&gt;caspol -m -ag 1.2 -url file://B:\* FullTrust&lt;/p&gt;
&lt;p&gt;I get the success and prompted for yes or no. Like normal not in that order. But when I fire up VS2008 again I still get the same issue when I create a new project. &amp;nbsp;I've proceeded to restart the VMWARE instance same issue. &amp;nbsp;I've also tried individually allow applications.&lt;/p&gt;
&lt;p&gt;caspol -m -ag 1.2 -url file://B:\WebApplication99\* FullTrust&lt;/p&gt;
&lt;p&gt;still same results.....&lt;/p&gt;
&lt;p&gt;Could you please advise? &amp;nbsp;Thanks for any help you have.&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9709178</link><pubDate>Mon, 08 Jun 2009 22:06:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9709178</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;I don't believe VS applies CAS policy when showing that dialog box, instead it only looks at the zone.&lt;/p&gt;
&lt;p&gt;You should be fine ignoring the box and letting CAS policy take over at runtime for you.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9762655</link><pubDate>Tue, 16 Jun 2009 19:47:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9762655</guid><dc:creator>Les.Kinney</dc:creator><description>&lt;p&gt;I was wondering if it is possible to use Caspol to enable full trust for a folder for running a Access 2007 runtime app from. &amp;nbsp;What I have done is created a click-once console app to extract an updated version of the access app to a local folder (c:\hcp\rect\) if IsFirstRun is true, otherwise it just uses System.Diagnostics.Process.Start to run the app using the runtime. &amp;nbsp;However, on client machines that don't have full version of Access 2003/2007, i want to be able to set Full Trust via batch file maybe so they don't have to answer the dialog and click Open button. &amp;nbsp;Is this possible? &amp;nbsp;If I am in the wrong place let me know too! &amp;nbsp;Thanks,&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9808309</link><pubDate>Mon, 29 Jun 2009 11:28:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9808309</guid><dc:creator>Sebastian</dc:creator><description>&lt;p&gt;Great blog entry ;)&lt;/p&gt;
&lt;p&gt;I miss the information how to remove this Full Trust entries. Is there a way doing that with CasPol? Please both ways (Full Trust to share and file).&lt;/p&gt;
&lt;p&gt;Thank you :)&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9823136</link><pubDate>Wed, 08 Jul 2009 00:00:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9823136</guid><dc:creator>Cip D</dc:creator><description>&lt;p&gt;Hi Shawn-&lt;/p&gt;
&lt;p&gt;I'm running into an issue with CASPOL where if I run it as a user without administrator permissions it fails. &amp;nbsp;My command is such:&lt;/p&gt;
&lt;p&gt;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\caspol -q -machine -addgroup 1. -url &lt;a rel="nofollow" target="_new" href="http://SERVERNAME/"&gt;http://SERVERNAME/&lt;/a&gt;* FullTrust -name &amp;quot;APPName&amp;quot;&lt;/p&gt;
&lt;p&gt;What do I need to do to allow any user to run this command?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;-Cip&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9828578</link><pubDate>Fri, 10 Jul 2009 12:57:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9828578</guid><dc:creator>Ian Ambrosen</dc:creator><description>&lt;p&gt;Shawn, have an exe running from a network drive v, tried the command&lt;/p&gt;
&lt;p&gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.507&lt;/p&gt;
&lt;p&gt;27\CasPol.exe -pp off -m -ag 1.2 -url file://v:\* FullTrust&lt;/p&gt;
&lt;p&gt;appeared to go ok but still get the same P9 &amp;nbsp;error security.security&lt;/p&gt;
&lt;p&gt;for caspol -m - lg got the following:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.1.2. &amp;nbsp;StrongName - 00000000000000000400000000000000: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1.2. &amp;nbsp;Zone - Intranet: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.1. &amp;nbsp;All code: Same site Web&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.2. &amp;nbsp;All code: Same directory FileIO - 'Read, PathDiscovery'&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.3. &amp;nbsp;Url - W:\*: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.4. &amp;nbsp;Url - \\192.168.245.4\*: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.5. &amp;nbsp;Url - V:\*: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.6. &amp;nbsp;Url - file://v:\*: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.7. &amp;nbsp;Url - file://v:\: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.2.8. &amp;nbsp;Url - file://v:\*: FullTrust&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1.3. &amp;nbsp;Zone - Internet: Internet&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.3.1. &amp;nbsp;All code: Same site Web&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1.4. &amp;nbsp;Zone - Untrusted: Nothing&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1.5. &amp;nbsp;Zone - Trusted: Internet&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; 1.5.1. &amp;nbsp;All code: Same site Web&lt;/p&gt;
&lt;p&gt;Any ideas what I am doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks Ian&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9835413</link><pubDate>Thu, 16 Jul 2009 13:19:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9835413</guid><dc:creator>Suyambu</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is there a way to give FullTrust programatically without using CASPOL tool.&lt;/p&gt;
&lt;p&gt;So that I don't have to execute the CASPOL command in each client machine.&lt;/p&gt;
&lt;p&gt;Can we achieve the same programatically what CASPOL does. Something similar to...&lt;/p&gt;
&lt;p&gt;[assembly: FileIOPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted = true)]&lt;/p&gt;
&lt;p&gt;[assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted = false)]&lt;/p&gt;
&lt;p&gt;Just wanted to know whether this is possible or not.&lt;/p&gt;
&lt;p&gt;Thanks in Advance.&lt;/p&gt;
&lt;p&gt;Suyambu&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9869235</link><pubDate>Fri, 14 Aug 2009 06:02:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9869235</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I have a .Net 2.0 app that a vendor has given me to deploy in our organization. &amp;nbsp;They created an app that goes along with it that takes care of the caspol part, however, it needs to be run with admin permissions against a network drive. &amp;nbsp;I've created an installer myself that will map a drive as a local admin, then apply the permissions but it's buggy and doesn't always work. &amp;nbsp;I'd rather just run their application but all of our users have &amp;quot;power user&amp;quot; rights so they can't do it themselves. &amp;nbsp;The command is:&lt;/p&gt;
&lt;p&gt;caspol -pp off -m -ag All_Code -url &amp;quot;file:// R:\Programs\imswin\cleardecisions\* &amp;quot; FullTrust -n Network_Apps&lt;/p&gt;
&lt;p&gt;We're a novell shop that uses zenworks for deployments. &amp;nbsp;Any help, like possibly using group policy instead, would be greatly appreciated. &amp;nbsp;I'm not a .net programmer so my knowledge is limited.&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9869275</link><pubDate>Fri, 14 Aug 2009 06:57:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9869275</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I did find this: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/KB/dotnet/Using_MSI_or_a_strong_nam.aspx"&gt;http://www.codeproject.com/KB/dotnet/Using_MSI_or_a_strong_nam.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Seems to be what I need, but not sure. &amp;nbsp;If it'll work I can just distribute that as an msi, but not sure since the &amp;quot;admin&amp;quot; account that will run it won't have an R drive mapped.&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9891611</link><pubDate>Sat, 05 Sep 2009 00:02:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9891611</guid><dc:creator>dylan</dc:creator><description>&lt;p&gt;I am trying to solve the trusted location issue when opening visual studio 2008 projects. When using CasPol.exe -m -ag 1.2 -url file://O:/* FullTrust I get the following:&lt;/p&gt;
&lt;p&gt;ERROR: Runtime error: Access denied. You might now have administrative credentials to perform this tast. Contact your system administrator for assistance. &lt;/p&gt;
&lt;p&gt;This is on a new Windows 7 installation, not sure if that has anything to do with it or not. &lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9905522</link><pubDate>Fri, 09 Oct 2009 19:29:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9905522</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is doing my head in.&lt;/p&gt;
&lt;p&gt;I have a screensaver app that runs 100% when i'm logged in, but it fails when it is invoked as the pre-login screensaver. Fails with a security exception. The winform app has a winforms webbrowser control embedded, when this control is removed no exception occurs and it works. According to MSDN the webbrowser control needs FullTrust. I've signed the app and used CASPOL to grant fulltrust, but still no go.&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9918122</link><pubDate>Thu, 05 Nov 2009 18:16:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918122</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;In order to diagnose a security exception, having the full exception text and call stack is useful - this way we can figure out who was demanding what.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9918128</link><pubDate>Thu, 05 Nov 2009 18:29:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918128</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Dylan - CAS sits on top of NT security, so if you are getting an access denied trying to perform an operation, that cannot be fixed with Caspol. &amp;nbsp;Instead, you'll need to ensure that your user account has permission to write to the machine wide CAS settings file.&lt;/p&gt;
&lt;p&gt;Make sure you're attempting this operaiton from an elevated command prompt, otherwise it won't succeed.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9918165</link><pubDate>Thu, 05 Nov 2009 19:15:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918165</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Suyambu - Check out ClickOnce deployment for applications. &amp;nbsp;In a ClickOnce application, the application declares what permissions it needs (for instance FullTrust), and will be guaranteed to either run with those permissions or not run at all.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9918171</link><pubDate>Thu, 05 Nov 2009 19:18:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918171</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;What error are you getting? &amp;nbsp;P9 security.security doesn't sound like a SecurityException so it may not be caspol related at all.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item><item><title>re: Using CasPol to Fully Trust a Share</title><link>http://blogs.msdn.com/shawnfa/archive/2004/12/30/using-caspol-to-fully-trust-a-share.aspx#9918174</link><pubDate>Thu, 05 Nov 2009 19:19:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9918174</guid><dc:creator>shawnfa</dc:creator><description>&lt;p&gt;Cip - that requires admin privilege because that command modifies the security settings for the entire machine. &amp;nbsp;Modification to machine wide security state is not allowed by unprivileged users.&lt;/p&gt;
&lt;p&gt;-Shawn&lt;/p&gt;
</description></item></channel></rss>