<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for David DeWinter</title>
	<atom:link href="http://blogs.rev-net.com/ddewinter/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.rev-net.com/ddewinter</link>
	<description>A Developer's Melting Pot: LINQ to SQL, Entity Framework, .NET Security...</description>
	<lastBuildDate>Mon, 23 Aug 2010 19:55:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Hosting Conditional APTCA Assemblies – #9 by David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/comment-page-1/#comment-32984</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Mon, 23 Aug 2010 19:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/#comment-32984</guid>
		<description>j3nonk, this is the response I received from a member of the ASP.NET team:

For Url encoding they will have to switch to System.Uri.

Sidenote:  for HTML encoding/decoding try System.Net.WebUtility.  WebUtility contains the HTML encoding/decoding routines from ASP.NET.</description>
		<content:encoded><![CDATA[<p>j3nonk, this is the response I received from a member of the ASP.NET team:</p>
<p>For Url encoding they will have to switch to System.Uri.</p>
<p>Sidenote:  for HTML encoding/decoding try System.Net.WebUtility.  WebUtility contains the HTML encoding/decoding routines from ASP.NET.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hosting Conditional APTCA Assemblies – #9 by j3nonk</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/comment-page-1/#comment-32938</link>
		<dc:creator>j3nonk</dc:creator>
		<pubDate>Mon, 23 Aug 2010 02:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/#comment-32938</guid>
		<description>Hi David,

Thanks for the response. I use methods inside HttpUtility class. Actually I could just replace the methods that I use such as UrlEncode, UrlDecode etc. (not too difficult but a lot of work :D)
I just wonder why Microsoft change the behaviour. Perhaps want to seperate between the web and non web application? because I saw that if the Target is .NET Framework 4 Client Profile, I can&#039;t find the System.web.dll if you try to add reference to the project. Is there a security issue if a non web application use System.Web.dll? I don&#039;t know :P

Thanks,
j3nonk.</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Thanks for the response. I use methods inside HttpUtility class. Actually I could just replace the methods that I use such as UrlEncode, UrlDecode etc. (not too difficult but a lot of work <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )<br />
I just wonder why Microsoft change the behaviour. Perhaps want to seperate between the web and non web application? because I saw that if the Target is .NET Framework 4 Client Profile, I can&#8217;t find the System.web.dll if you try to add reference to the project. Is there a security issue if a non web application use System.Web.dll? I don&#8217;t know <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Thanks,<br />
j3nonk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hosting Conditional APTCA Assemblies – #9 by David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/comment-page-1/#comment-32927</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Sun, 22 Aug 2010 23:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/#comment-32927</guid>
		<description>Hi j3nonk, if you don&#039;t control the host then there&#039;s nothing you can do to be able to use System.Web today. What classes from System.Web do you use in an XBAP application though?</description>
		<content:encoded><![CDATA[<p>Hi j3nonk, if you don&#8217;t control the host then there&#8217;s nothing you can do to be able to use System.Web today. What classes from System.Web do you use in an XBAP application though?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Asserting for Permissions in .NET 4 &#8211; #18 by David DeWinter</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/06/25/asserting-for-permissions-in-net-4/comment-page-1/#comment-32926</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Sun, 22 Aug 2010 23:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/06/25/asserting-for-permissions-in-net-4/#comment-32926</guid>
		<description>Hi Colin, I know the security model is complicated. Unfortunately splitting the model into slices and examining each slice can sometimes lose how everything works together to create the big picture.

As far as I can tell, everything you&#039;ve described should make this work. Is the assembly that contains the Helper class signed with a strong name key? You can also check if your assembly is being registered correctly in the fully trusted assemblies list by checking AppDomain.CurrentDomain.SetupInformation.ApplicationTrust.FullTrustAssemblies for the strong name of the Helper assembly. Hope that helps--I&#039;ll try to be a little more punctual with a reply if you respond.</description>
		<content:encoded><![CDATA[<p>Hi Colin, I know the security model is complicated. Unfortunately splitting the model into slices and examining each slice can sometimes lose how everything works together to create the big picture.</p>
<p>As far as I can tell, everything you&#8217;ve described should make this work. Is the assembly that contains the Helper class signed with a strong name key? You can also check if your assembly is being registered correctly in the fully trusted assemblies list by checking AppDomain.CurrentDomain.SetupInformation.ApplicationTrust.FullTrustAssemblies for the strong name of the Helper assembly. Hope that helps&#8211;I&#8217;ll try to be a little more punctual with a reply if you respond.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hosting Conditional APTCA Assemblies – #9 by j3nonk</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/comment-page-1/#comment-32601</link>
		<dc:creator>j3nonk</dc:creator>
		<pubDate>Thu, 19 Aug 2010 07:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/27/hosting-conditional-aptca-assemblies/#comment-32601</guid>
		<description>Hi David,

Nice article.. ;)
I have the same problem, that is using objects inside System.Web.dll but the host is an XBAP Application (Partial Trust).
Do you have a workaround how to solve this? without having to remove objects of System.Web assembly in my codes?
Probably, somehow we can register the System.Web assembly into Current Domain (AppDomain.CurrentDomain.SetupInformation.PartialTrustVisibleAssemblies)?
Or do you have other idea?

Thanks,
j3nonk.</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>Nice article.. <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I have the same problem, that is using objects inside System.Web.dll but the host is an XBAP Application (Partial Trust).<br />
Do you have a workaround how to solve this? without having to remove objects of System.Web assembly in my codes?<br />
Probably, somehow we can register the System.Web assembly into Current Domain (AppDomain.CurrentDomain.SetupInformation.PartialTrustVisibleAssemblies)?<br />
Or do you have other idea?</p>
<p>Thanks,<br />
j3nonk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ASP.NET Event Validation by Abhilash</title>
		<link>http://blogs.rev-net.com/ddewinter/2007/11/24/aspnet-event-validation/comment-page-1/#comment-31411</link>
		<dc:creator>Abhilash</dc:creator>
		<pubDate>Fri, 23 Jul 2010 19:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://dev.rev-net.com/blog/ddewinter/?p=22#comment-31411</guid>
		<description>Thats a nice piece of information.
:D</description>
		<content:encoded><![CDATA[<p>Thats a nice piece of information.<br />
 <img src='http://blogs.rev-net.com/ddewinter/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Asserting for Permissions in .NET 4 &#8211; #18 by Colin Bowern</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/06/25/asserting-for-permissions-in-net-4/comment-page-1/#comment-31398</link>
		<dc:creator>Colin Bowern</dc:creator>
		<pubDate>Fri, 23 Jul 2010 07:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/06/25/asserting-for-permissions-in-net-4/#comment-31398</guid>
		<description>This isn&#039;t making a lot of sense for those of us who don&#039;t frequently touch CAS.  I&#039;m trying the above in ASP.NET v4 and it&#039;s throwing an InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods.  I get that ASP.NET v4 under medium trust runs in a security transparent manner.  I thought by adding my class library to the fullTrustAssemblies element that I would be able to run the full trust code.  What am I missing:

[assembly: AllowPartiallyTrustedCallers]

namespace HelperLib
{
    public static class Helper
    {
        public static string CreateFile()
        {
            return DangerousWork();
        }

        [SecuritySafeCritical]
        [PermissionSet(SecurityAction.Assert, Unrestricted=true)]
        private static string DangerousWork()
        {
            string data = File.ReadAllText(&quot;c:\\testfile.txt&quot;);

            return data;

        }
    }
}</description>
		<content:encoded><![CDATA[<p>This isn&#8217;t making a lot of sense for those of us who don&#8217;t frequently touch CAS.  I&#8217;m trying the above in ASP.NET v4 and it&#8217;s throwing an InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods.  I get that ASP.NET v4 under medium trust runs in a security transparent manner.  I thought by adding my class library to the fullTrustAssemblies element that I would be able to run the full trust code.  What am I missing:</p>
<p>[assembly: AllowPartiallyTrustedCallers]</p>
<p>namespace HelperLib<br />
{<br />
    public static class Helper<br />
    {<br />
        public static string CreateFile()<br />
        {<br />
            return DangerousWork();<br />
        }</p>
<p>        [SecuritySafeCritical]<br />
        [PermissionSet(SecurityAction.Assert, Unrestricted=true)]<br />
        private static string DangerousWork()<br />
        {<br />
            string data = File.ReadAllText(&#8220;c:\\testfile.txt&#8221;);</p>
<p>            return data;</p>
<p>        }<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on LINQ to SQL: Updating Entities by Alex</title>
		<link>http://blogs.rev-net.com/ddewinter/2009/04/07/linq-to-sql-updating-entities/comment-page-1/#comment-31380</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 22 Jul 2010 09:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/04/07/linq-to-sql-updating-entities/#comment-31380</guid>
		<description>It is a very good article. It really helped my with my concurrency errors.

Thanks!</description>
		<content:encoded><![CDATA[<p>It is a very good article. It really helped my with my concurrency errors.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Entity Framework Stored Procedure Generation by Richard Collette</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/04/26/entity-framework-stored-procedure-generation/comment-page-1/#comment-31044</link>
		<dc:creator>Richard Collette</dc:creator>
		<pubDate>Sun, 11 Jul 2010 20:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/index.php/2008/04/26/entity-framework-stored-procedure-generation/#comment-31044</guid>
		<description>It seems like the next logical thing to make this do, if possible, is to get the stored procedures into a database project so that you can take advantage of deployment packaging.   The &quot;import sql&quot; option can be automated using sql server management objects http://msdn.microsoft.com/en-us/library/ms162169.aspx</description>
		<content:encoded><![CDATA[<p>It seems like the next logical thing to make this do, if possible, is to get the stored procedures into a database project so that you can take advantage of deployment packaging.   The &#8220;import sql&#8221; option can be automated using sql server management objects <a href="http://msdn.microsoft.com/en-us/library/ms162169.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms162169.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dynamic Menu Commands in Visual Studio Packages &#8211; Part 2 by Andy</title>
		<link>http://blogs.rev-net.com/ddewinter/2008/03/22/dynamic-menu-commands-in-visual-studio-packages-part-2/comment-page-1/#comment-30880</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 07 Jul 2010 16:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/?p=72#comment-30880</guid>
		<description>Hello, Great post, however I wanted to go 1 step further, i.e. if I select multiple files in VS solution explorer context menu, the following line returns null &#039;value&#039;:
hierarchy.GetProperty(projectItemId, (int)__VSHPROPID.VSHPROPID_Name, out value);
If only 1 file is selected then I get the name of that file using &quot;value.ToString()&quot;

Any suggestion on how to get names of multiple files selected?

Many thanks !</description>
		<content:encoded><![CDATA[<p>Hello, Great post, however I wanted to go 1 step further, i.e. if I select multiple files in VS solution explorer context menu, the following line returns null &#8216;value&#8217;:<br />
hierarchy.GetProperty(projectItemId, (int)__VSHPROPID.VSHPROPID_Name, out value);<br />
If only 1 file is selected then I get the name of that file using &#8220;value.ToString()&#8221;</p>
<p>Any suggestion on how to get names of multiple files selected?</p>
<p>Many thanks !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
