<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>{Programming} &amp; Life</title>
	
	<link>http://goneale.com</link>
	<description>Graham O'Neale – Deep In .NET Development: ASP.NET, MVC, jQuery, WPF, WCF, Silverlight</description>
	<lastBuildDate>Fri, 03 Sep 2010 04:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/programmingLife" /><feedburner:info uri="programminglife" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/E0Ia4O0-Y68/</link>
		<comments>http://goneale.com/2010/09/03/the-null-value-cannot-be-assigned-to-a-member-with-type-system-int32-int64-decimal-integer-which-is-a-non-nullable-value-type/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 04:44:48 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[linq]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1099</guid>
		<description><![CDATA[Are you getting this? System.InvalidOperationException: The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type. On something like this? var totalSize = query.Sum(x =&#62; x.Size); This occurs because your LINQ property (in my case &#8220;Size&#8221;) is not nullable, and needs to be nullable because your Sum() operation [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>Are you getting this?</p>
<blockquote><p><em><strong>System.InvalidOperationException:<br />
The null value cannot be assigned to a member with type System.Int64 which is a non-nullable value type.</strong></em></p></blockquote>
<p>On something like this?</p>
<pre class="sh_csharp">var totalSize = query.Sum(x =&gt; x.Size);
</pre>
<p>This occurs because your LINQ property (in my case &#8220;Size&#8221;) is not nullable, and needs to be nullable because your <code>Sum()</code> operation could potentially iterate over a list which is empty yielding your LINQ property value to be <code>null</code>.<br />
Of course you can&#8217;t <code>Sum()</code> null as we know or the universe would explode, so try this instead:</p>
<pre class="sh_csharp">var totalSize = query.Sum(x =&gt; (long?) x.Size);
</pre>
<p>This may very well just be a LINQ to SQL thing, but I am not sure.  Maybe somebody else out there in the wide world web can enlighten me!</p>
<p>Best of luck!</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br /><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script>
<p><a href="http://feedads.g.doubleclick.net/~a/b9HZji7xce4qop4z9xHuTWaCzmU/0/da"><img src="http://feedads.g.doubleclick.net/~a/b9HZji7xce4qop4z9xHuTWaCzmU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/b9HZji7xce4qop4z9xHuTWaCzmU/1/da"><img src="http://feedads.g.doubleclick.net/~a/b9HZji7xce4qop4z9xHuTWaCzmU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=E0Ia4O0-Y68:5WyV0r8Ieho:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=E0Ia4O0-Y68:5WyV0r8Ieho:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=E0Ia4O0-Y68:5WyV0r8Ieho:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=E0Ia4O0-Y68:5WyV0r8Ieho:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/E0Ia4O0-Y68" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/09/03/the-null-value-cannot-be-assigned-to-a-member-with-type-system-int32-int64-decimal-integer-which-is-a-non-nullable-value-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/09/03/the-null-value-cannot-be-assigned-to-a-member-with-type-system-int32-int64-decimal-integer-which-is-a-non-nullable-value-type/</feedburner:origLink></item>
		<item>
		<title>Automatically Infer MVC Validation Rules Based on LINQ to SQL Schema – Sweet!</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/GqNqODDLpKg/</link>
		<comments>http://goneale.com/2010/08/27/automatically-infer-determine-mvc-validation-rules-based-on-linq-to-sql-database-schema/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 04:26:29 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1083</guid>
		<description><![CDATA[Hey gang, just a quickie today. I have been working recently on setting up server side and client side model validation &#8220;by the book&#8221; in ASP.NET MVC 2 complete with data annotations and the first question that hit me when I was declaring attributes on my LINQ to SQL partial classes to determine model validation [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>Hey gang, just a quickie today.  I have been working recently on setting up server side and client side model validation &#8220;by the book&#8221; in ASP.NET MVC 2 complete with data annotations and the first question that hit me when I was declaring attributes on my LINQ to SQL partial classes to determine model validation was <em>&#8220;hold on, surely there is a way to automagically have MVC infer my validation rules based on my database schema&#8230;&#8221;</em>, it seemed a little silly to me that I would have to re-declare validation rules on my model classes when I have a perfectly, well-decorated set of rules within SQL Server, not to mention within the LINQ to SQL .dbml designer file, against my database objects.  I also felt this was going against the <a href="http://en.wikipedia.org/wiki/Don't_repeat_yourself" target="_blank">DRY principle</a> which is &#8220;Don&#8217;t Repeat Yourself&#8221;. </p>
<p>So, what if you could avoid the monotonous, not to mention need for duplicated code and have your model automatically validation based on your LINQ to SQL schema? (which in turn was resolved from the database.) and what would you expect it to do? Well we know when we declare <code>VarChar</code>&#8216;s, <code>NVarChar</code>&#8216;s and other text types in the database we specify a length in a fashion of <code>VarChar(100)</code> right? Well, this information serves for what our <code>[StringLength]</code> attributes could be.  </p>
<p>The other, and probably more pressing check would be if we could automate our <code>[Required]</code> Attribute so we could determine if the field is required by the user for input.  Well, thankfully our LINQ to SQL schema reveals that too; Let&#8217;s see how this could come together&#8230;</p>
<p>Firstly, the main idea and code skeleton for this approach came from Carl over at &#8220;<a href="http://devcarl.posterous.com/aspnet-mvc-2-and-automatic-stringlength-valid" target="_blank">Carl On Development</a>&#8221; as he displayed quite an ingenious solution to the problem; His approach was to simply check the actual LINQ to SQL data type of the column of the class in question as a pre-validation check to address the field length problem, once having received the value stored in the brackets of <code>VarChar(100)</code> from the LINQ to SQL model, build a standard <code>StringLengthAttribute</code> class returning this newly sought value, the same as if you were to attribute your property as <code>[StringLength(100)]</code> yourself!</p>
<p>Unfortunately, his text editor appeared to have removed the &#8220;<code>&lt;</code>&#8221; and &#8220;<code>&gt;</code>&#8221; signs which made it difficult to determine what generic types he was calling upon in his function.  However, after a bit of playing, I worked out what was going on and also then thought this could be taken further, and introduced another test for &#8220;Is Null&#8221; testing.</p>
<p>Enjoy, and tell me what you think (Remember, as this inherits from the <code>AssociatedValidatorProvider</code> class in the <code>System.Web.Mvc</code> namespace, there is no need to decorate any of your model, or partial model classes with any attributes, meaning no more work is required &#8211; the thing will just work once it is registered!):</p>
<pre class="sh_csharp">
    public class SchemaValidatorProvider : AssociatedValidatorProvider
    {
        public static readonly string[] TextTypes = new string[] { "char", "varchar", "nchar", "nvarchar" };
        public static readonly string LengthRegex = "[" + string.Join("|", TextTypes) + "]\\((.*)\\)";

        public bool IsNotNull(ColumnAttribute column)
        {
            return !column.CanBeNull;
        }

        public int? ExtractLength(ColumnAttribute column)
        {
            var match = Regex.Match(column.DbType.ToLower(), LengthRegex, RegexOptions.Compiled);
            if (match == null || match.Groups.Count != 2) return null;
            return string.Compare(match.Groups[1].Value.ToLower(), "MAX", true) == 0 ? int.MaxValue : int.Parse(match.Groups[1].Value);
        }

        protected override IEnumerable<ModelValidator> GetValidators(ModelMetadata metadata, ControllerContext context, IEnumerable<Attribute> attributes)
        {
            var columnAttribute = attributes.OfType<ColumnAttribute>().FirstOrDefault();

            if (columnAttribute == null || columnAttribute.DbType == null)
                yield break;

            // Determine max length of column and yield the StringLength attribute if found.
            var maxLength = ExtractLength(columnAttribute);
            if (maxLength.HasValue)
                yield return new StringLengthAttributeAdapter(metadata, context, new StringLengthAttribute(maxLength.Value));

            // Determine if state of column is not null, if so yield Required attribute.
            if (IsNotNull(columnAttribute))
                yield return new RequiredAttributeAdapter(metadata, context, new RequiredAttribute());
        }
    }
</pre>
<p>Then over in your <strong>Global.asax.cs</strong>:</p>
<pre class="sh_csharp">
public class MvcApplication : System.Web.HttpApplication
    {
        ....
        protected void Application_Start()
        {
            ModelValidatorProviders.Providers.Add(new SchemaValidatorProvider());
            AreaRegistration.RegisterAllAreas();

            RegisterRoutes(RouteTable.Routes);
            ...
        }
    }
</pre>
<p>Look Ma! Nothing required on the model, it just works!</p>
<pre class="sh_csharp">
    [MetadataType(typeof(ShareMetadata))]
    public partial class User
    {
        private sealed class UserMetadata
        {
            // [Required] [StringLength(50)] - No longer required!
            [DisplayName("The name")]
            public string Name { get; set; }

            [Range(1, 100)] // Still might be required depending on your business requirements!
            [DisplayName("Cost Per Unit ($)")]
            public decimal UnitCost { get; set; }
        }
    }
</pre>
<p>What this means is you will not have to declare any &#8220;typical&#8221; validation rules on your model classes at all, required fields and field length will be completely handled for you automatically without the need for any Data Annotation Attributes!</p>
<p>Hopefully this will cover both validation cases I could think of initially using the in-built, and very extensible ASP.NET MVC validation providers.  I would be keen to know if this could be extended further for other checks.</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br /><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script>
<p><a href="http://feedads.g.doubleclick.net/~a/lvORZBQkjOkQmzswPRViSEvjD-k/0/da"><img src="http://feedads.g.doubleclick.net/~a/lvORZBQkjOkQmzswPRViSEvjD-k/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lvORZBQkjOkQmzswPRViSEvjD-k/1/da"><img src="http://feedads.g.doubleclick.net/~a/lvORZBQkjOkQmzswPRViSEvjD-k/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=GqNqODDLpKg:zfdLi0eTnKc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=GqNqODDLpKg:zfdLi0eTnKc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=GqNqODDLpKg:zfdLi0eTnKc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=GqNqODDLpKg:zfdLi0eTnKc:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/GqNqODDLpKg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/08/27/automatically-infer-determine-mvc-validation-rules-based-on-linq-to-sql-database-schema/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/08/27/automatically-infer-determine-mvc-validation-rules-based-on-linq-to-sql-database-schema/</feedburner:origLink></item>
		<item>
		<title>New VS Theme Site + Desert Nights 2008 Theme Updated – ReSharper + VS 2010 Support!</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/kfN2bDgoh90/</link>
		<comments>http://goneale.com/2010/04/30/new-vs-theme-site-desert-nights-2008-theme-updated-resharper-vs-2010-support/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 11:38:40 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ux]]></category>
		<category><![CDATA[visual-studio]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1073</guid>
		<description><![CDATA[Just heard news of a sweet new website dedicated to Theming and Styling Visual Studio, called &#8220;StudioStyles&#8221; now that&#8217;s my kinda site.  Go check it out, tons of themes to choose from if your VS IDE is looking kinda drab or you&#8217;re sick of looking at that same old blue and white&#8230; I also just [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.0" /></div><div>Rating: 4.0/<strong>5</strong> (5 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>Just heard news of a sweet new website dedicated to Theming and Styling Visual Studio, called &#8220;<a href="http://studiostyles.info/" target="_blank"><strong>StudioStyles</strong></a>&#8221; now that&#8217;s my kinda site.  Go check it out, tons of themes to choose from if your VS IDE is looking kinda drab or you&#8217;re sick of looking at that same old blue and white&#8230; <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I also just updated my own Desert Nights theme variation, &#8220;Desert Nights Reloaded&#8221;; it&#8217;s now available for VS 2010 as well as VS 2008 with ReSharper 5 color coding support! Cool! So go get it, <a href="http://goneale.com/2009/02/08/my-variation-on-an-excellent-visual-studio-theme-desert-nights-2008/" target="_blank">officially from my blog</a> or go <a href="http://studiostyles.info/schemes/desert-nights-reloaded-2008-2010-" target="_blank">check it out on StudioStyles</a>! What are you waiting for !?! <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not much else happening in blogger-verse right now, but I will let you know if anything exciting happens&#8230;</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.0" /></div><div>Rating: 4.0/<strong>5</strong> (5 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/5pJln9tT2jYcfIcAZuXTBBLtpeQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/5pJln9tT2jYcfIcAZuXTBBLtpeQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5pJln9tT2jYcfIcAZuXTBBLtpeQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/5pJln9tT2jYcfIcAZuXTBBLtpeQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=kfN2bDgoh90:LXjU6rrW0yI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=kfN2bDgoh90:LXjU6rrW0yI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=kfN2bDgoh90:LXjU6rrW0yI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=kfN2bDgoh90:LXjU6rrW0yI:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/kfN2bDgoh90" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/04/30/new-vs-theme-site-desert-nights-2008-theme-updated-resharper-vs-2010-support/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/04/30/new-vs-theme-site-desert-nights-2008-theme-updated-resharper-vs-2010-support/</feedburner:origLink></item>
		<item>
		<title>View Contents of HTTP WCF Message with Message Logging &amp; Service Trace Viewer</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/SFFbaasQZBY/</link>
		<comments>http://goneale.com/2010/04/15/view-contents-of-http-wcf-message-with-wcf-message-logging-and-service-trace-viewer/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 05:04:29 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1060</guid>
		<description><![CDATA[If you would like to see the contents of your WCF message body packet as understood by the server, you can enable WCF message logging via a few adjustments in your WCF Service Web.config file and by then by using the Microsoft Service Trace Viewer application to view it. I found best results by creating [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.0" /></div><div>Rating: 3.0/<strong>5</strong> (1 vote cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>If you would like to see the contents of your WCF message body packet as understood by the server, you can enable WCF message logging via a few adjustments in your WCF Service Web.config file and by then by using the Microsoft Service Trace Viewer application to view it.</p>
<p>I found best results by creating a directory on your system drive, <strong>C:\logs\</strong> and storing your WCF messages in there. Everytime I specified the <strong>.svclog</strong> file to be in the same directory as where my app was, it wasn&#8217;t being created, but that could just be my local system permissions at play.</p>
<p><strong>So all you need to do to enable this is in the Web.config of your WCF Service (Host):</strong></p>
<pre class="sh_xml">  &lt;system.diagnostics&gt;
    &lt;sources&gt;
      &lt;source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing"&gt;
        &lt;listeners&gt;
          &lt;add type="System.Diagnostics.DefaultTraceListener" name="Default"&gt;
            &lt;filter type="" /&gt;
          &lt;/add&gt;
          &lt;add name="ServiceModelMessageLoggingListener"&gt;
            &lt;filter type="" /&gt;
          &lt;/add&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
    &lt;/sources&gt;
    &lt;sharedListeners&gt;
      &lt;add initializeData="c:\logs\web_messages.svclog" type="System.Diagnostics.XmlWriterTraceListener"
       name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"&gt;
        &lt;filter type="" /&gt;
      &lt;/add&gt;
    &lt;/sharedListeners&gt;
    &lt;trace autoflush="true" /&gt;
  &lt;/system.diagnostics&gt;

  &lt;system.serviceModel&gt;
    &lt;diagnostics&gt;
      &lt;messageLogging logEntireMessage="true" logMalformedMessages="true"
       logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"
       maxSizeOfMessageToLog="2147483647" /&gt;
    &lt;/diagnostics&gt;
</pre>
<p>Then run the client app and perform your WCF call, a new <strong>web_messages.svclog</strong> file should have been created which can now be opened and viewed.</p>
<p>The most interesting data will be under the <strong>XML</strong> and <strong>Messages</strong> tabs once you have clicked a message to view.</p>
<p>The default view is not bad, but by pressing <strong>ALT-3</strong> within the trace viewer application you will enter <strong>message view</strong> which I feel is better suited for messaging viewing (how profound).</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">&lt;system.diagnostics&gt;<br />
&lt;sources&gt;<br />
&lt;source name=&#8221;System.ServiceModel.MessageLogging&#8221; switchValue=&#8221;Warning, ActivityTracing&#8221;&gt;<br />
&lt;listeners&gt;<br />
&lt;add type=&#8221;System.Diagnostics.DefaultTraceListener&#8221; name=&#8221;Default&#8221;&gt;<br />
&lt;filter type=&#8221;" /&gt;<br />
&lt;/add&gt;<br />
&lt;add name=&#8221;ServiceModelMessageLoggingListener&#8221;&gt;<br />
&lt;filter type=&#8221;" /&gt;<br />
&lt;/add&gt;<br />
&lt;/listeners&gt;<br />
&lt;/source&gt;<br />
&lt;/sources&gt;<br />
&lt;sharedListeners&gt;<br />
&lt;add initializeData=&#8221;c:\logs\web_messages.svclog&#8221; type=&#8221;System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8243;<br />
name=&#8221;ServiceModelMessageLoggingListener&#8221; traceOutputOptions=&#8221;Timestamp&#8221;&gt;<br />
&lt;filter type=&#8221;" /&gt;<br />
&lt;/add&gt;<br />
&lt;/sharedListeners&gt;<br />
&lt;trace autoflush=&#8221;true&#8221; /&gt;<br />
&lt;/system.diagnostics&gt;</p>
<p>&lt;system.serviceModel&gt;<br />
&lt;diagnostics&gt;<br />
&lt;messageLogging logEntireMessage=&#8221;true&#8221; logMalformedMessages=&#8221;true&#8221;<br />
logMessagesAtServiceLevel=&#8221;true&#8221; logMessagesAtTransportLevel=&#8221;true&#8221;<br />
maxSizeOfMessageToLog=&#8221;2147483647&#8243; /&gt;<br />
&lt;/diagnostics&gt;</p>
</div>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.0" /></div><div>Rating: 3.0/<strong>5</strong> (1 vote cast)</div><br /><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_xml.js"></script>
<p><a href="http://feedads.g.doubleclick.net/~a/FdsTZxfaRuO7ifM6q9U3H5R0V8c/0/da"><img src="http://feedads.g.doubleclick.net/~a/FdsTZxfaRuO7ifM6q9U3H5R0V8c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FdsTZxfaRuO7ifM6q9U3H5R0V8c/1/da"><img src="http://feedads.g.doubleclick.net/~a/FdsTZxfaRuO7ifM6q9U3H5R0V8c/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=SFFbaasQZBY:FCS24BxTsoQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=SFFbaasQZBY:FCS24BxTsoQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=SFFbaasQZBY:FCS24BxTsoQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=SFFbaasQZBY:FCS24BxTsoQ:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/SFFbaasQZBY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/04/15/view-contents-of-http-wcf-message-with-wcf-message-logging-and-service-trace-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/04/15/view-contents-of-http-wcf-message-with-wcf-message-logging-and-service-trace-viewer/</feedburner:origLink></item>
		<item>
		<title>.Net Enum Values As Bit Flags</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/5QUDewbS_xc/</link>
		<comments>http://goneale.com/2010/04/13/net-enum-values-as-bit-flags/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 02:03:28 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1055</guid>
		<description><![CDATA[Every now and then I find myself needing to set multiple values to an enum object and test this later on, synonymously I usually find myself also scouring the net on the best practice on how to set, access and test these enum flags So today I thought I would post a definitive reference I [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.3" /></div><div>Rating: 4.3/<strong>5</strong> (6 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>Every now and then I find myself needing to set multiple values to an enum object and test this later on, synonymously I usually find myself also scouring the net on the best practice on how to set, access and test these enum flags <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So today I thought I would post a definitive reference I found on the net..</p>
<p><strong>Specify flag-annotated enum:</strong></p>
<pre class="sh_csharp">[Flags]
public enum Column
{
None = 0,
Priority = 1 &lt;&lt; 0,
Customer = 1 &lt;&lt; 1,
Contract = 1 &lt;&lt; 2,
Description = 1 &lt;&lt; 3,
Tech = 1 &lt;&lt; 4,
Created = 1 &lt;&lt; 5,
Scheduled = 1 &lt;&lt; 6,
DueDate = 1 &lt;&lt; 7,
All = int.MaxValue
};
</pre>
<p><strong>The [Flags] attribute allows you to do this:</strong></p>
<pre class="sh_csharp">Column MyColumns = Column.Customer | Column.Contract;
</pre>
<p><strong>To check if contains flag:</strong></p>
<pre class="sh_csharp">if ((MyColumns &amp; Column.Customer) != 0)</pre>
<p><strong>To check if has flag or higher:</strong></p>
<pre class="sh_csharp">if (MyColumns >= Column.Customer)</pre>
<p><strong>To check if has flag or lower:</strong></p>
<pre class="sh_csharp">if (MyColumns <= Column.Customer)</pre>
<p><strong>To set a flag:</strong></p>
<pre class="sh_csharp">MyColumns |= Column.Tech;</pre>
<p><strong>To clear a flag:</strong></p>
<pre class="sh_csharp">MyColumns &amp;= ~Column.Tech;</pre>
<p><strong>To toggle (flip) a flag:</strong></p>
<pre class="sh_csharp">MyColumns ^= Column.Contract;</pre>
<p><strong>To clear all flags:</strong></p>
<pre class="sh_csharp">MyColumns = Column.None;</pre>
<p><strong>To set all flags:</strong></p>
<pre class="sh_csharp">MyColumns = Column.All;</pre>
<p><strong>To set all flags EXCEPT one or more:</strong></p>
<pre class="sh_csharp">MyColumns = Column.All ^ Column.Tech ^ Column.Status;</pre>
<p>Credit to <a href="http://weblogs.asp.net/wim/archive/2004/04/07/109095.aspx#6205719" target="_blank">Jeremy Lundy</a> for the comprehensive write up.</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.3" /></div><div>Rating: 4.3/<strong>5</strong> (6 votes cast)</div><br /><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script><script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_csharp.js"></script>
<p><a href="http://feedads.g.doubleclick.net/~a/g8G6kigRh0fgJ8WqZkwkCMh114c/0/da"><img src="http://feedads.g.doubleclick.net/~a/g8G6kigRh0fgJ8WqZkwkCMh114c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/g8G6kigRh0fgJ8WqZkwkCMh114c/1/da"><img src="http://feedads.g.doubleclick.net/~a/g8G6kigRh0fgJ8WqZkwkCMh114c/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=5QUDewbS_xc:44-bqWNFrTc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=5QUDewbS_xc:44-bqWNFrTc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=5QUDewbS_xc:44-bqWNFrTc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=5QUDewbS_xc:44-bqWNFrTc:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/5QUDewbS_xc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/04/13/net-enum-values-as-bit-flags/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/04/13/net-enum-values-as-bit-flags/</feedburner:origLink></item>
		<item>
		<title>Error connecting to WAS-enabled Net Tcp WCF Service Hosted Through IIS</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/Yju-9UnHNQ0/</link>
		<comments>http://goneale.com/2010/04/01/error-connecting-to-was-enabled-net-tcp-wcf-service-hosted-through-iis/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 00:42:19 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[wcf]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1049</guid>
		<description><![CDATA[As you may be aware, setting up a TCP-based full duplex WCF service can have some pretty awesome advantages over regular HTTP-based WCF services, such as the ability for a true client/server persistent connection and the ability for the server to call back to the client at any time and there are a few good [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.0" /></div><div>Rating: 3.0/<strong>5</strong> (2 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>As you may be aware, setting up a TCP-based full duplex WCF service can have some pretty awesome advantages over regular HTTP-based WCF services, such as the ability for a true client/server persistent connection and the ability for the server to call back to the client at any time and there are a few good guides <a href="http://realfiction.net/go/113" target="_blank">here</a> and <a href="http://www.singingeels.com/Articles/Duplex_WCF_Services_Hosted_in_IIS_Using_NetTcp.aspx" target="_blank">here</a> on how to use them, but they have proven to have some real teething problems through setup.. So if you are attempting to host a WAS-enabled WCF service in IIS 7 using the <strong>net.tcp</strong> binding for duplex communication, and suffering from any connectivity or setup issues, particularly this one.. read on.</p>
<blockquote><p><strong>Could not connect to net.tcp://127.0.0.1/WCFService/Service1.svc.<br />
The connection attempt lasted for a time span of 00:00:01.0464395.<br />
TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:808. </strong></p></blockquote>
<p>Check to ensure you have ticked off the below steps (as I went through them all!) when I encountered my issue connecting via a <strong>net.tcp://</strong> WCF service today:</p>
<ol>
<li>Ensure you are running <strong>IIS 7</strong>. IIS 6 and below <a href="http://msdn.microsoft.com/en-us/library/ms730158.aspx" target="_blank">does not support</a> Windows Process Activation Services (WAS) which boils down to no other binding support except for <strong>http </strong>(such as <strong>net.tcp</strong>).
<ol>
<li><strong>If you </strong><strong>receive an error</strong> installing this component in Windows Features (like I did, I pretty much got every error possible setting all this up), <a href="http://serverfault.com/questions/117927/problem-activating-windows-communication-foundation-non-http-activation-feature" target="_blank">it&#8217;s probably because you have the .NET Framework 4 installed</a> (hmz &#8211; RC in my case), you know you shouldn&#8217;t have this installed! How dare you! So to get the component installed, .NET Framework 4 must be uninstalled (and all traces of it), the non-http activation component then installed, and then .NET Framework 4 reinstalled.  I tried a way to avoid this, but no luck; I found it was the only way the darn thing it would install.</li>
<li>If everything has gone down the tubes even more, and now even your regular WCF services aren&#8217;t loading at all, and you&#8217;re encountering a MIME type error in the browser, it&#8217;s probably because attempting to install the windows feature borked it when it didn&#8217;t work first time and took down half of the WCF IIS configuration with it.  So see my <a href="http://goneale.com/2009/01/23/problem-running-wcf-service-in-iis-7/" target="_blank">previous post on how to fix a corrupt WCF IIS configuration</a>.</li>
</ol>
</li>
<li>Double check that you have your WCF Service hosted and activated in IIS correctly, <a href="http://www.singingeels.com/Articles/Duplex_WCF_Services_Hosted_in_IIS_Using_NetTcp.aspx" target="_blank">here is a great guide</a> provided by <em>SingingEels</em>.
<ol>
<li>This includes enabling &#8220;<strong>Windows Communication Foundation Non-HTTP Activation</strong>&#8221; via. <strong>Control Panel -&gt; Programs and Features -&gt; Turn Windows features on or off</strong> (under .NET Framework option).</li>
<li>Ensuring the &#8220;<strong>Net.Tcp Protocol</strong>&#8221; in your web site is enabled under: IIS (7.0) <strong>Admin -&gt;  Right Click on your Web Site -&gt; Manage Website -&gt; Advanced  Settings&#8230;</strong> (The &#8216;Enabled Protocols&#8217; field should be set as <strong>http,net.tcp</strong>.  Note that is a comma, then a dot.)</li>
<li>Then finally, <strong>Configure the &#8220;Site Bindings&#8221; in IIS</strong>. (Double check the port you are using, if it&#8217;s 808:* your service will be  accessible under <strong>net.tcp://localhost/MyServices/Service1.svc</strong>,  but if it&#8217;s 12345:* for example, or any other custom port, make sure you  address it as such in your Web/App.config for your client connection as  <strong>net.tcp://localhost:12345/MyServices/Service1.svc</strong>.</li>
</ol>
</li>
<li>Thirdly, try loading it now &#8211; if you are <em><strong>still</strong></em> receiving an error and you had to follow step 2.1 and had to activate the &#8220;<strong>Windows Communication Foundation Non-HTTP Activation</strong>&#8221; component and <em>HAVE NOT </em>rebooted since yet (lol), go into your local services and start the service entitled &#8220;<strong>Net.Tcp Listener Adapter</strong>&#8220;.  Fun and games.  That last point 3 was the one that really got me. As described it <em>&#8220;Receives activation requests over the net.tcp protocol and passes them to the Windows Process Activation Service.&#8221;</em>, Windows kindly forgot to turn that on after I had installed the component in Program Features.</li>
</ol>
<p>That should be it, I didn&#8217;t encounter any other problem, so I hope you don&#8217;t either. I had no firewall issues so it shouldn&#8217;t ever be that.</p>
<p>Good luck.</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.0" /></div><div>Rating: 3.0/<strong>5</strong> (2 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/o-pu-AvzLPjTBD6X7k8SLVGJ3MA/0/da"><img src="http://feedads.g.doubleclick.net/~a/o-pu-AvzLPjTBD6X7k8SLVGJ3MA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/o-pu-AvzLPjTBD6X7k8SLVGJ3MA/1/da"><img src="http://feedads.g.doubleclick.net/~a/o-pu-AvzLPjTBD6X7k8SLVGJ3MA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=Yju-9UnHNQ0:_YF_XpvEbDM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=Yju-9UnHNQ0:_YF_XpvEbDM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=Yju-9UnHNQ0:_YF_XpvEbDM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=Yju-9UnHNQ0:_YF_XpvEbDM:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/Yju-9UnHNQ0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/04/01/error-connecting-to-was-enabled-net-tcp-wcf-service-hosted-through-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/04/01/error-connecting-to-was-enabled-net-tcp-wcf-service-hosted-through-iis/</feedburner:origLink></item>
		<item>
		<title>.NET Framework/ASP.NET/C# Development Ultimate Learning Resources (Tutorials for Beginners to Advanced)</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/I89Bm5Yq9p0/</link>
		<comments>http://goneale.com/2010/03/15/net-framework-asp-net-c-sharp-development-ultimate-learning-resources-tutorials-for-beginners-to-advanced/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 05:35:54 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1040</guid>
		<description><![CDATA[Howdy everyone, firstly I would like to apologise for the lack of blog updates, I have seriously been flat out on development with our new online start-up, Fotochimp and have not had much time for blogging. However today I am taking a few minutes time-out to share some links with you I found for a [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.5" /></div><div>Rating: 3.5/<strong>5</strong> (4 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p><em><strong>Howdy everyone, firstly I would like to apologise for the lack of blog updates, I have seriously been flat out on development with our new online start-up, <a href="http://goneale.com/2009/10/31/our-new-startup-early-bird-registrations-have-now-opened-at-fotochimp-com-and-you-are-invited/" target="_blank">Fotochimp</a> and have not had much time for blogging.</strong></em></p>
<p>However today I am taking a few minutes time-out to share some links with you I found for a friend today who wished to start out learning ASP.NET web development.  I&#8217;m sharing them because I was absolutely astonished at how hard it was to find any decent, rich tutorial resources on the topic of ASP.NET and C# development.  Many of the top ranking links on Google I felt did not either start at the right place, were too complicated for beginners or was missing information, but more so I wanted to hand on a single reliable one-stop-shop link I could trust they could use to learn ASP.NET and C# development from beginner to advanced.</p>
<p>So after giving up on finding such a magical resource, I&#8217;ve compilation a set of tutorial links of text and video resources below which covers all aspects from beginner to advanced programming guides in respect to the the .NET Framework, ASP.NET and C#.  My goal was to try and deliver the &#8220;best bits&#8221; I could find on the net, and hopefully I have done that, but more importantly delivering these links in a logical numeric learning sequence which is the easiest and most effective route to follow.</p>
<p>You will see Ive started with a bit of background on the .NET Framework, which I feel is important in understanding how all the .NET framework components are glued together such as ASP.NET, and then we dive right into learning all about the C# programming language which I feel is a good precursor to ASP.NET (I recommend the C# programming language over VB.NET for .NET  development, as I personally find it a more concise, elegant language,  but it must be understood you can accomplish the same tasks in .NET with  VB.NET as you can with C#, it&#8217;s simply syntactical differences and a  true personal choice; see <a href="http://stackoverflow.com/questions/2434825/vb-net-vs-c-net" target="_blank">here</a> and <a href="http://www.harding.edu/fmccown/vbnet_csharp_comparison.html" target="_blank">here</a> for more info, however if you are impartial, and you need more  convincing, keep in mind about 90% of examples you will encounter on the  net are written in C# and not VB.NET).  The links on C# are hopefully some of the best free ones on the net and range from beginner through to advanced and there is an accompanied video series if you have the time.</p>
<p>Whilst I have put the C# programming language learning series before the ASP.NET web development framework, this order may not be everybody&#8217;s cup of tea.  You may wish to learn ASP.NET first and if you are feeling confident, learn C# along the way.  Understand though, it is ideal to learn the programming language of the framework you will be actually programming against, ASP.NET as it simply lessens the difficulty curve when you eventually get to the ASP.NET tutorials.  I personally am pretty impatient with these type of things and tend to through myself straight into the deep end and learn as I go <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (..usually learning hard lessons along the way!).  But this approach like for me, appeals to some when they can program in context against a real world framework like ASP.NET rather than focusing on the behemoth solely that can be the C# programming language.</p>
<p>Then last but not least, we concentrate on the ASP.NET Framework as stated, particularly; ASP.NET Web Forms (you may have heard some buzz around ASP.NET MVC, which is a very sweet framework addition, it simply is an alternative way of designing dynamic websites, but in my personal opinion, not something worth venturing down if you are a novice programmer or haven&#8217;t touched ASP.NET or OO-based languages before.  However if you&#8217;re daring, are an intermediate ASP.NET developer or have previous object-orientated or C# knowledge, check it out!) there is a great set of background info, ordered and unordered text and video based tutorial resources which contains just about everything you would need to know to get started and make a big impact in the world of ASP.NET.</p>
<p>So here goes.. <em><strong>RCMD </strong></em>is recommended, and highly advisable reading, <em>OPT </em>is optional reading,  if you have a lot of time and you want the richest understanding possible. I have numbered these in desired reading order, but it is up to you!</p>
<p>Firstly, resources on the <strong>.NET Framework</strong>:</p>
<ol>
<li><em><strong>RCMD: </strong></em><a href="http://www.codeproject.com/KB/dotnet/netbasics.aspx" target="_blank">http://www.codeproject.com/KB/dotnet/netbasics.aspx</a> (Seems to be the best overview, good content, good diagrams, you can always rely on CodeProject for great stuff)</li>
<li><em><strong>RCMD:</strong></em> <a href="http://www.dotnet-guide.com/" target="_blank">http://www.dotnet-guide.com/</a> (Good secondary overview, the first page seems useful, simplistic terminology)</li>
<li><em><strong>RCMD:</strong></em> <a href="http://www.microsoft.com/net/overview.aspx" target="_blank">http://www.microsoft.com/net/overview.aspx</a> (The official Microsoft .NET site, gives you basic knowledge, good to just have a glaze over)</li>
<li><em>OPT:</em> <a href="http://devhood.com/training_modules/dist-a/intro.net/intro.net.htm" target="_blank">http://devhood.com/training_modules/dist-a/intro.net/intro.net.htm</a> (a more detailed, but harder read, uses terms which may require previous programming experience)</li>
<li><em>OPT:</em> <a href="http://msdn.microsoft.com/en-us/netframework/default.aspx" target="_blank">http://msdn.microsoft.com/en-us/netframework/default.aspx</a> (and the official MSDN Microsoft .NET Framework site)</li>
<li><em>OPT: </em><a href="http://en.wikipedia.org/wiki/.NET_Framework" target="_blank">http://en.wikipedia.org/wiki/.NET_Framework</a> (Wikipedia article giving you more detailed background and a more complex  explanation and history)</li>
</ol>
<p>Secondly, resources on <strong>C#.NET (C Sharp)</strong>. (Be aware you can  choose C#.NET or VB.NET as the official language you wish to program  ASP.NET in, I personally recommend C#):</p>
<ol>
<li><em><strong>RCMD (TEXT SERIES): </strong></em><a href="http://www.csharp-station.com/Tutorial.aspx" target="_blank">http://www.csharp-station.com/Tutorial.aspx</a> (Comprehensive, but not a totally scary C# tutorial, follow this and  you&#8217;ll be a whiz in no time!)</li>
<li><em><strong>RCMD (ORDERED, VIDEO SERIES): </strong></em><a href="http://idealprogrammer.com/videos/c-soup-to-nuts-22-free-one-hour-videos-from-microsoft-expert/" target="_blank">http://idealprogrammer.com/videos/c-soup-to-nuts-22-free-one-hour-videos-from-microsoft-expert/</a> (Another video from the &#8220;Soup to Nuts&#8221; set, awesome video series, again  need IE as it uses MS Live Meeting.)</li>
<li><em>OPT (TEXT SERIES):</em> <a href="http://www.functionx.com/csharp/" target="_blank">http://www.functionx.com/csharp/</a> (lessons on the left, looks a little more hardcore but again more  detailed).</li>
</ol>
<p>Thirdly, our beloved <strong>ASP.NET</strong>, the <em>subset </em>web development technology of the .NET Framework:</p>
<ol>
<li><em><strong>RCMD: </strong></em><a href="http://www.javascriptkit.com/howto/aspnet.shtml" target="_blank">http://www.javascriptkit.com/howto/aspnet.shtml</a> (Good explanation, hand-in-hand with wikipedia article)</li>
<li><em><strong>RCMD: </strong></em><a href="http://www.startvbdotnet.com/aspsite/asp/" target="_blank">http://www.startvbdotnet.com/aspsite/asp/</a> (Again another good explanation, good bullet points, again hand-in-hand with wiki article helps)</li>
<li><em><strong>RCMD: </strong></em><a href="http://en.wikipedia.org/wiki/ASP.NET" target="_blank">http://en.wikipedia.org/wiki/ASP.NET</a> (I really like this article, very comprehensive, but not as daunting as the .NET Framework Wiki article, so good reading for all beginners)</li>
<li><em><strong>RCMD (VIDEO): </strong></em><a href="http://www.asp.net/learn/videos/video-9638.aspx" target="_blank">http://www.asp.net/learn/videos/video-9638.aspx</a> (&#8220;What is ASP.NET&#8221; short 5 minute video on official ASP.NET site)</li>
<li><em><strong>RCMD (VIDEO): </strong></em><a href="http://www.asp.net/learn/videos/video-9640.aspx" target="_blank">http://www.asp.net/learn/videos/video-9640.aspx</a> (&#8220;Your 1st ASP.NET Application&#8221; 11 minute video)</li>
<li><em><strong>RCMD (TEXT SERIES): </strong></em><a href="http://www.w3schools.com/aspnet/aspnet_intro.asp" target="_blank">http://www.w3schools.com/aspnet/aspnet_intro.asp</a> (ASP.NET tutorial, very simple, but that&#8217;s always nice for starting out and a nice re-cap on the previous video)</li>
<li><em><strong>RCMD (NON-ORDERED, VIDEO SERIES): </strong></em><a href="http://www.w3schools.com/aspnet/aspnet_intro.asp" target="_blank">http://www.asp.net/web-forms/fundamentals/</a> (A huge collection of official learning videos, great set, includes all ASP.NET fundamentals.)</li>
<li><em><strong>RCMD (NON-ORDERED, VIDEO SERIES): </strong></em><a href="http://www.asp.net/web-forms/" target="_blank">http://www.asp.net/web-forms/</a> (Again,  huge collection of official learning videos, but you will have to know  what you are looking for, or view each one by one.)</li>
<li><em><strong>RCMD (ORDERED, VIDEO SERIES): </strong></em><a href="http://idealprogrammer.com/videos/learn-aspnet-from-microsoft-expert-26-hours-of-free-videos" target="_blank">http://idealprogrammer.com/videos/learn-aspnet-from-microsoft-expert-26-hours-of-free-videos</a> ( long, but awesomely comprehensive videos, might require IE as they  use Live Meeting <img src='http://goneale.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , look really good if you have the time to follow a  video series, I just stumbled across it from some other recommended  links)</li>
<li><em><strong>RCMD (TEXT SERIES)</strong></em>: <a href="http://quickstarts.asp.net/QuickStartv20/aspnet/Default.aspx" target="_blank">http://quickstarts.asp.net/QuickStartv20/aspnet/Default.aspx</a> (Use this as a final recap, the good thing about this resource is once you have learnt the basics, it has a neat &#8220;ASP.NET Control Reference&#8221; section down the bottom, so click on the control you wanna learn more about, say &#8220;TextBox&#8221; under &#8220;standard controls&#8221; and it shows you coding examples on how to use them!)</li>
<li>RCMD: <a href="http://www.asp.net/" target="_blank">http://www.asp.net/</a> (Official Microsoft ASP.NET site, good to have bookmarked as reference)</li>
<li><em><strong>RCMD (NON-ORDERED, VIDEO SERIES): </strong></em><a href="http://www.asp.net/web-forms/data/" target="_blank">http://www.asp.net/web-forms/data/</a> (When you have learnt the basics and you are ready to access data (such as from a database), check out this series using Microsoft .NET&#8217;s new technology, LINQ to SQL down the bottom labeled &#8220;How do I with LINQ&#8221;!)</li>
<li><em>OPT: </em><a href="http://www.asp.net/web-forms/data/" target="_blank">http://aspalliance.com/144</a> (Still haven&#8217;t got enough? Another comprehensive ASP.NET tutorial..)</li>
<li><em>OPT:</em> <a href="http://www.programmingtutorials.com/aspnet.aspx" target="_blank">http://www.programmingtutorials.com/aspnet.aspx</a> (Finally, a whole stack more of external links&#8230;)</li>
</ol>
<p>And finally, a whole bunch of books on all three topics&#8230;</p>
<ul>
<li><a href="http://www.asp.net/community/books/" target="_blank">http://www.asp.net/community/books/</a></li>
</ul>
<p>Now this is the link you want to give out <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Hope it helps, and feel free to share this link around with others you might know wanting to learn about C# and ASP.NET Development!</p>
<p>Graham</p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=3.5" /></div><div>Rating: 3.5/<strong>5</strong> (4 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/4booEHxy7UP9GaLPjNbA3RbIaX8/0/da"><img src="http://feedads.g.doubleclick.net/~a/4booEHxy7UP9GaLPjNbA3RbIaX8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4booEHxy7UP9GaLPjNbA3RbIaX8/1/da"><img src="http://feedads.g.doubleclick.net/~a/4booEHxy7UP9GaLPjNbA3RbIaX8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=I89Bm5Yq9p0:PXXOgK91d3g:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=I89Bm5Yq9p0:PXXOgK91d3g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=I89Bm5Yq9p0:PXXOgK91d3g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=I89Bm5Yq9p0:PXXOgK91d3g:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/I89Bm5Yq9p0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/03/15/net-framework-asp-net-c-sharp-development-ultimate-learning-resources-tutorials-for-beginners-to-advanced/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/03/15/net-framework-asp-net-c-sharp-development-ultimate-learning-resources-tutorials-for-beginners-to-advanced/</feedburner:origLink></item>
		<item>
		<title>IntelliTrace debugging is available only for x86 applications</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/rQ7xH3f34II/</link>
		<comments>http://goneale.com/2010/02/15/intellitrace-debugging-is-available-only-for-x86-applications/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 05:13:43 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[intellitrace]]></category>
		<category><![CDATA[visual-studio]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1034</guid>
		<description><![CDATA[It appears the new IntelliTrace feature of Visual Studio 2010 is only available for x86 applications?! Don&#8217;t ask me, there is an article with more info, but Habib Heydarian shed some light on the workaround here. It appears to get around this problem, you must set your project to a configuration platform of x86, enabling [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>It appears the new <a href="http://msdn.microsoft.com/en-us/library/dd264915%28VS.100%29.aspx" target="_blank">IntelliTrace</a> feature of Visual Studio 2010 is only available for x86 applications?!</p>
<p><a href="http://goneale.com/wp-content/uploads/2010/02/intellitrace-not-available.png"><img class="alignnone size-full wp-image-1035" title="IntelliTrace Not Available - Visual Studio 2010" src="http://goneale.com/wp-content/uploads/2010/02/intellitrace-not-available.png" alt="" width="273" height="114" /></a></p>
<p>Don&#8217;t ask me, there is an article with more info, but Habib Heydarian shed some light on the <a href="http://blogs.msdn.com/habibh/archive/2009/10/22/intellitrace-is-not-available-why.aspx" target="_blank">workaround here</a>.</p>
<p>It appears to get around this problem, you must set your project to a configuration platform of <strong>x86</strong>, enabling it to run as a 32-bit process.</p>
<p>You can do this by dropping down the <strong>&#8220;Solution Platforms&#8221;</strong> combo usually stating <strong>&#8220;Any CPU&#8221;</strong> next to your <strong>&#8220;Run&#8221;</strong> option on the menu bar and selecting <strong>&#8220;Configuration Manager&#8221;</strong>.  From there it&#8217;s just a matter of selecting <strong>&#8220;Platform&#8221;</strong> -&gt; <strong>&#8220;New&#8221;</strong> and adding a new platform type <strong>&#8220;x86&#8243;</strong> and you&#8217;re right to go.  IntelliTrace should now work.</p>
<p>Don&#8217;t forget to set this back to <strong>&#8220;Any CPU&#8221;</strong> when you are done to target both x64 (64-bit) and x86 (32-bit) platforms.<strong><br />
</strong></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 6px; width: 1px; height: 1px;">http://blogs.msdn.com/habibh/archive/2009/10/22/intellitrace-is-not-available-why.aspx</div>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/BJwlM4ifL1VmFsXc6q4QVroM8Bg/0/da"><img src="http://feedads.g.doubleclick.net/~a/BJwlM4ifL1VmFsXc6q4QVroM8Bg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BJwlM4ifL1VmFsXc6q4QVroM8Bg/1/da"><img src="http://feedads.g.doubleclick.net/~a/BJwlM4ifL1VmFsXc6q4QVroM8Bg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=rQ7xH3f34II:W6NEs_WuIoQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=rQ7xH3f34II:W6NEs_WuIoQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=rQ7xH3f34II:W6NEs_WuIoQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=rQ7xH3f34II:W6NEs_WuIoQ:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/rQ7xH3f34II" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/02/15/intellitrace-debugging-is-available-only-for-x86-applications/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/02/15/intellitrace-debugging-is-available-only-for-x86-applications/</feedburner:origLink></item>
		<item>
		<title>Disable/turn off ‘Attach Security Warning’ in Visual Studio 2008/2005</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/YAUx7vsa9DI/</link>
		<comments>http://goneale.com/2010/01/20/disable-turn-off-vs-attach-security-warning-in-visual-studio-2008-2005-iis/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 06:28:48 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[visual-studio]]></category>

		<guid isPermaLink="false">http://goneale.com/?p=1027</guid>
		<description><![CDATA[If you are fed up with continually having to press &#8220;Attach&#8221; to attach to the IIS w3wp.exe to enable debugging in Visual Studio for IIS as seen in this screenshot: Then never fear, this is a way around it. All you need to do is adjust the registry setting (via regedit.exe) as Visual Studio wasn&#8217;t [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.7" /></div><div>Rating: 4.7/<strong>5</strong> (3 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<p>If you are fed up with continually having to press &#8220;<strong>Attach</strong>&#8221; to attach to the IIS w3wp.exe to enable debugging in Visual Studio for IIS as seen in this screenshot:</p>
<p><a href="http://goneale.com/wp-content/uploads/2010/01/vs-attach-security-warning.png"><img class="alignnone size-full wp-image-1028" title="vs-attach-security-warning" src="http://goneale.com/wp-content/uploads/2010/01/vs-attach-security-warning.png" alt="Visual Studio Debugging Attach Security Warning for IIS" width="427" height="242" /></a></p>
<p>Then never fear, this is a way around it.</p>
<p>All you need to do is adjust the registry setting (via regedit.exe) as Visual Studio wasn&#8217;t kind enough to supply as a checkbox for us on the dialog:</p>
<blockquote><p><strong>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger | DisableAttachSecurityWarning = 1</strong></p></blockquote>
<p>The same setting can be found for Visual Studio 2005 under:</p>
<blockquote><p><strong>HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Debugger</strong><strong> | DisableAttachSecurityWarning = 1</strong></p></blockquote>
<p><strong>*** Make sure you make this change <span style="text-decoration: underline;"><em>after</em></span> you have closed Visual Studio, or it may not save properly! ***</strong></p>
<p>Hope that has helped ya.</p>
<p><em>PS. I&#8217;ve been swamped will full time work lately, but I have a bunch of drafts I want to inevitably publish on this blog, so stay tuned.</em></p>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=4.7" /></div><div>Rating: 4.7/<strong>5</strong> (3 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/29SMnGp_o9NdHyhxCHMSAagiSEg/0/da"><img src="http://feedads.g.doubleclick.net/~a/29SMnGp_o9NdHyhxCHMSAagiSEg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/29SMnGp_o9NdHyhxCHMSAagiSEg/1/da"><img src="http://feedads.g.doubleclick.net/~a/29SMnGp_o9NdHyhxCHMSAagiSEg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=YAUx7vsa9DI:J3iDbXeMIo4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=YAUx7vsa9DI:J3iDbXeMIo4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=YAUx7vsa9DI:J3iDbXeMIo4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=YAUx7vsa9DI:J3iDbXeMIo4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/YAUx7vsa9DI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2010/01/20/disable-turn-off-vs-attach-security-warning-in-visual-studio-2008-2005-iis/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://goneale.com/2010/01/20/disable-turn-off-vs-attach-security-warning-in-visual-studio-2008-2005-iis/</feedburner:origLink></item>
		<item>
		<title>Twitter Weekly Updates for 2009-11-22</title>
		<link>http://feedproxy.google.com/~r/programmingLife/~3/pMSA9kptTTA/</link>
		<comments>http://goneale.com/2009/11/22/twitter-weekly-updates-for-2009-11-22/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 05:00:00 +0000</pubDate>
		<dc:creator>Graham O'Neale</dc:creator>
				<category><![CDATA[Tweets]]></category>

		<guid isPermaLink="false">http://goneale.com/2009/11/22/twitter-weekly-updates-for-2009-11-22/</guid>
		<description><![CDATA[My day is made. Happy jQuery developer now. http://bit.ly/qlHLq #jQuery #datatables # Now I&#39;ve seen everything. Is everyone bored on the Internets? RT @shanselman: Madness.Truly.Who cares? RT @lachlanhardy: http://bit.ly/TIOaz # Tooo much work today and no play # MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ~! [...]<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>My day is made. Happy jQuery developer now. <a href="http://bit.ly/qlHLq" rel="nofollow">http://bit.ly/qlHLq</a> #<a href="http://search.twitter.com/search?q=%23jQuery" class="aktt_hashtag">jQuery</a> #<a href="http://search.twitter.com/search?q=%23datatables" class="aktt_hashtag">datatables</a> <a href="http://twitter.com/goneale/statuses/5758613767" class="aktt_tweet_time">#</a></li>
<li>Now I&#39;ve seen everything. Is everyone bored on the Internets? RT @shanselman: Madness.Truly.Who cares? RT @lachlanhardy: <a href="http://bit.ly/TIOaz" rel="nofollow">http://bit.ly/TIOaz</a> <a href="http://twitter.com/goneale/statuses/5761950632" class="aktt_tweet_time">#</a></li>
<li>Tooo much work today and no play <img src='http://goneale.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <a href="http://twitter.com/goneale/statuses/5762300765" class="aktt_tweet_time">#</a></li>
<li>MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ~! <a href="http://twitter.com/goneale/statuses/5779019629" class="aktt_tweet_time">#</a></li>
<li><a href="http://bit.ly/4c4n5f" rel="nofollow">http://bit.ly/4c4n5f</a> <a href="http://twitter.com/goneale/statuses/5779039742" class="aktt_tweet_time">#</a></li>
<li>One day I&#39;ll make it to #<a href="http://search.twitter.com/search?q=%23PDC" class="aktt_hashtag">PDC</a>&#8230;&#8230;. <a href="http://twitter.com/goneale/statuses/5779261394" class="aktt_tweet_time">#</a></li>
<li>lol RT @PDC09: Visit the Visual Studio booth in the Big Room for your ULTIMATE Developer henna tattoo!  Mon &amp; Tues, 2-5pm #<a href="http://search.twitter.com/search?q=%23visualstudio" class="aktt_hashtag">visualstudio</a> <a href="http://twitter.com/goneale/statuses/5779772129" class="aktt_tweet_time">#</a></li>
<li>Never gets old&#8230; <img src='http://goneale.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://bit.ly/QHZJB" rel="nofollow">http://bit.ly/QHZJB</a> #<a href="http://search.twitter.com/search?q=%23StarWarsKid" class="aktt_hashtag">StarWarsKid</a> <a href="http://twitter.com/goneale/statuses/5780040003" class="aktt_tweet_time">#</a></li>
<li>Waiting for #<a href="http://search.twitter.com/search?q=%23Steam" class="aktt_hashtag">Steam</a> to login on my shaped #<a href="http://search.twitter.com/search?q=%23TPG" class="aktt_hashtag">TPG</a> account, this could take a while&#8230;.. <a href="http://twitter.com/goneale/statuses/5780855023" class="aktt_tweet_time">#</a></li>
<li>A help listener web server to boot up #<a href="http://search.twitter.com/search?q=%23VS2010" class="aktt_hashtag">VS2010</a> F1 Help? I&#39;m scared. <a href="http://twitter.com/goneale/statuses/5809613039" class="aktt_tweet_time">#</a></li>
<li>A site any budding entrepreneurs should add to their list. <a href="http://bit.ly/1d4Wyf" rel="nofollow">http://bit.ly/1d4Wyf</a> <a href="http://twitter.com/goneale/statuses/5810510168" class="aktt_tweet_time">#</a></li>
<li>Yaaaaaaah #<a href="http://search.twitter.com/search?q=%23JBL" class="aktt_hashtag">JBL</a> LSR 2328P&#39;s have arrived!! .. unboxing .. !!! <a href="http://twitter.com/goneale/statuses/5816289830" class="aktt_tweet_time">#</a></li>
<li>What&#39;s everyone using for backing up/ripping #<a href="http://search.twitter.com/search?q=%23DVD" class="aktt_hashtag">DVD</a>&#39;s now a days? #<a href="http://search.twitter.com/search?q=%23GordianKnot" class="aktt_hashtag">GordianKnot</a>? Something else? .. Such a time consuming mission! <a href="http://twitter.com/goneale/statuses/5844922383" class="aktt_tweet_time">#</a></li>
<li>Last day of shaped Internet rubbish! <a href="http://twitter.com/goneale/statuses/5845955344" class="aktt_tweet_time">#</a></li>
<li>Go away sore throats! Leave @<a href="http://twitter.com/goneale" class="aktt_username">goneale</a> and @<a href="http://twitter.com/koneale" class="aktt_username">koneale</a> alone! <a href="http://twitter.com/goneale/statuses/5871045350" class="aktt_tweet_time">#</a></li>
<li><a href="http://www.ultimatetypingchampionship.com/" rel="nofollow">http://www.ultimatetypingchampionship.com/</a> But it&#39;s U.S. Only! <img src='http://goneale.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <a href="http://twitter.com/goneale/statuses/5876412738" class="aktt_tweet_time">#</a></li>
</ul>
<br /><div><img src="http://goneale.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>5</strong> (0 votes cast)</div><br />
<p><a href="http://feedads.g.doubleclick.net/~a/EhiE0rFEdVj7lUlbQjYR81L3K3U/0/da"><img src="http://feedads.g.doubleclick.net/~a/EhiE0rFEdVj7lUlbQjYR81L3K3U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EhiE0rFEdVj7lUlbQjYR81L3K3U/1/da"><img src="http://feedads.g.doubleclick.net/~a/EhiE0rFEdVj7lUlbQjYR81L3K3U/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:bcOpcFrp8Mo"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=bcOpcFrp8Mo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:dBgfwv8chhc"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=dBgfwv8chhc" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:wfPLY4pQREI"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=wfPLY4pQREI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=pMSA9kptTTA:-O_D6R0Nl2k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=pMSA9kptTTA:-O_D6R0Nl2k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/programmingLife?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/programmingLife?a=pMSA9kptTTA:-O_D6R0Nl2k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/programmingLife?i=pMSA9kptTTA:-O_D6R0Nl2k:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/programmingLife/~4/pMSA9kptTTA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://goneale.com/2009/11/22/twitter-weekly-updates-for-2009-11-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://goneale.com/2009/11/22/twitter-weekly-updates-for-2009-11-22/</feedburner:origLink></item>
	</channel>
</rss>
