<?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> Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx</link><description>As you already know, LinkDemands can be dangerous . But if you do use them, you need to know how to use them correctly. One problem that happens is when people add (or fail to maintain) a LinkDemand to a derived class when one did (or did not) exist on</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#168692</link><pubDate>Tue, 29 Jun 2004 13:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:168692</guid><dc:creator>Eric Wilson</dc:creator><description>I don't understand how Full Demands work.  In a future blog can you give you a run-down about how they work?  In particular, I'm having trouble understanding the &amp;quot;deny&amp;quot; part of Full Demands.  Can I demand that my assembly run without full trust, but that the callers code can run however it would like?  How do I do that?</description></item><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#168833</link><pubDate>Tue, 29 Jun 2004 15:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:168833</guid><dc:creator>Peter Torr</dc:creator><description>The best way to run without FullTrust is to add RequestRefuse declarative attributes to your assembly. See:&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrefusingpermissions.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrefusingpermissions.asp&lt;/a&gt;&lt;br&gt;&lt;br&gt;for more information.&lt;br&gt;&lt;br&gt;A Deny is used to temporarily terminate a stackwalk at the current method.</description></item><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#168982</link><pubDate>Tue, 29 Jun 2004 17:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:168982</guid><dc:creator>Frank Hileman</dc:creator><description>Thanks for the excellent explanation. Any chance you could tell us how you got that beautiful colorized text in for the code? I have been frustrated with that part of blogging.</description></item><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#169402</link><pubDate>Wed, 30 Jun 2004 03:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:169402</guid><dc:creator>Peter Torr</dc:creator><description>I write my blogs in Word and then use a WordML -&amp;gt; HTML transform and a VSTO project to post to the blog web service.&lt;br&gt;&lt;br&gt;I really need to upload the final version some day... ;-)</description></item><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#170840</link><pubDate>Thu, 01 Jul 2004 13:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:170840</guid><dc:creator>Nicole Calinoiu</dc:creator><description>Peter: Wouldn't making an optional request for non-unrestricted permissions (i.e.: [assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted=false)]) as per &lt;a target="_new" href="http://msdn.microsoft.com/library/en-us/cpguide/html/cpconpermissionrequests.asp?frame=true"&gt;http://msdn.microsoft.com/library/en-us/cpguide/html/cpconpermissionrequests.asp?frame=true&lt;/a&gt; be a much simpler means of running without full trust?&lt;br&gt;&lt;br&gt;As with your earlier comment, most MS recommendations I've seen for refusing full trust go the RequestRefuse route.  However, the setup for this is both more tedious and more error-prone, and it doesn't accomodate possible extensions to the available permission sets, so I have to wonder why it seems to be the favoured approach.&lt;br&gt;&lt;br&gt;Is the RequestRefuse route somehow safer or more reliable?  Is there any documentation available comparing the two approaches?</description></item><item><title>re:  Maintaining LinkDemands across inheritance boundaries</title><link>http://blogs.msdn.com/ptorr/archive/2004/06/29/168374.aspx#171286</link><pubDate>Thu, 01 Jul 2004 22:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:171286</guid><dc:creator>Peter Torr</dc:creator><description>Thanks for the great comment, Nicole. &lt;br&gt;&lt;br&gt;Please see my follow-up post at &lt;a target="_new" href="http://weblogs.asp.net/ptorr/archive/2004/07/01/170998.aspx"&gt;http://weblogs.asp.net/ptorr/archive/2004/07/01/170998.aspx&lt;/a&gt;</description></item></channel></rss>