<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Peter Thok</title>
	<atom:link href="http://pthok.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthok.wordpress.com</link>
	<description>Another day, another line of tested code</description>
	<lastBuildDate>Sat, 05 Nov 2011 10:01:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pthok.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Peter Thok</title>
		<link>http://pthok.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pthok.wordpress.com/osd.xml" title="Peter Thok" />
	<atom:link rel='hub' href='http://pthok.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Stack Overflow is a sham</title>
		<link>http://pthok.wordpress.com/2011/11/05/stack-overflow-is-a-sham/</link>
		<comments>http://pthok.wordpress.com/2011/11/05/stack-overflow-is-a-sham/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 09:47:26 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=152</guid>
		<description><![CDATA[Let&#8217;s face it, if you&#8217;ve ever written a line of code in the past 3 years, you&#8217;ve more than likely landed on stackoverflow.com. It&#8217;s absolutely an indispensable weapon in a developer&#8217;s arsenal. But it&#8217;s all a guise. This no-nonsense, information-packed, almost fun site is only a ruse created by Jeff Atwood and Joel Spolsky. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=152&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s face it, if you&#8217;ve ever written a line of code in the past 3 years, you&#8217;ve more than likely landed on <a href="http://www.stackoverflow.com" target="_blank">stackoverflow.com.</a> It&#8217;s absolutely an indispensable weapon in a developer&#8217;s arsenal. But it&#8217;s all a guise. This no-nonsense, information-packed, almost fun site is only a ruse created by <a href="http://en.wikipedia.org/wiki/Jeff_Atwood" target="_blank">Jeff Atwood</a> and <a href="http://en.wikipedia.org/wiki/Joel_Spolsky" target="_blank">Joel Spolsky</a>. The real intent of the site is has nothing to do with technology, let alone programming.</p>
<p>But let me start from the beginning and how I stumbled upon my discovery. For work, I&#8217;m developing a discussion site that implements <a href="http://www.codinghorror.com/blog/2011/10/the-gamification.html">gamification</a>, not unlike the sites in the <a href="http://stackexchange.com/">Stack Exchange network</a>. As a matter of fact we are closely following their model and implementation. Today I was working on the user profile page and wanted to see how Stack Overflow did theirs. A co-worker pointed out that their user IDs are incremental and we were curious who user ID 1 is. Lo and behold, it was <a href="http://stackoverflow.com/users/1/jeff-atwood">Jeff Atwood</a>. No big surprise I guess.</p>
<p>As I expected, the profile page is clean and concise like the rest of the site. I saw a link to his Coding Horror blog and clicked it. I&#8217;ve been there before but I don&#8217;t remember reading any of his entries. It just so happens his last blog was on parenthood and I&#8217;m at the age where my fiance and I are contemplating whether we should have children or not. So I read Jeff&#8217;s blog on parenthood and to my surprise, it was VERY entertaining. His writing style mixes in anecdotes, unexpected analogies, and a sense of humor that somehow easily comes through in the words.</p>
<p>I somehow found myself scrolling down the page to see what else he wrote about? Multiple video cards for Battlefield 3? OK! I have a love for both. What else is there? Being an iPhone/iPad developer is like serving the king? Hmmm, sound interesting. Gamification? Directly applies to me.</p>
<p>Those next 3 articles were equally well written in the same personable style. But his gamification blog is what let me to the purpose of this blog. In the gamification blog, there&#8217;s a link to another of his blog titled <a href="http://www.codinghorror.com/blog/2011/02/how-to-write-without-writing.html">&#8220;How to Write Without Writing&#8221;</a>. In it Jeff points out that developers are not the best communicators. That &#8220;communication with other human beings is not exactly what we signed up for&#8221;. No argument there. It turns out Jeff and Joel have always intended to use Stack Overflow to trick developers into writing more. The smoking barrel: &#8220;Joel and I have always positioned Stack Overflow, and all the other Stack Exchange Q&amp;A sites, as lightweight, focused, &#8216;fun size&#8217; units of writing&#8230;Yes, by God, we will trick you into becoming a better writer if that&#8217;s what it takes &#8230;&#8221;</p>
<p>WE&#8217;VE BEEN BAMBOOZLED! This entire time I thought I was using that wonderfully pragmatic site for my own gains. But those two were playing us all.</p>
<p>But seriously, going through Jeff&#8217;s blog inspired me. He&#8217;s absolutely right. We should all strive to be better writers and communicators. And most of us desperately need to start practicing more. I can personally attest to this. Just writing this blog is taking longer than I expected and I had to visit Google several times to search for the right word to convey my thoughts. I&#8217;m obviously having a hard to time gathering my thoughts and clarifying them. I can&#8217;t even do it at the pace I&#8217;m typing. How is there any hope I&#8217;m going to do it while conversing (Or is it conversating? I&#8217;m going to need a lot practice.)?</p>
<p>Up till now, I&#8217;ve only been writing in this blog as a way to remind myself of resolutions to technical issues. But I should strive for more. I realize I won&#8217;t always be writing content that eventually translates to 1&#8242;s and 0&#8242;s. Someday, I&#8217;ll need to actually interact with other people. *gasp*. So now is a good time as any. But now that I put my plan out there, I might have invited the <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=NHopJHSlVo4">curse of social reality</a>. Only time will tell.</p>
<p>On a final note, I want to convey my new found respect for Jeff, Joel, and other people that carry on with their work-life balance but at the same time still care about society as a whole and take steps to try to make it better. Something we should all strive for.</p>
<p>Oh yeah, congratulations to Jeff on the twin girls. I&#8217;m sure you&#8217;ll really have your work cut out for you now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=152&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/11/05/stack-overflow-is-a-sham/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>RadChart with .NET MVC</title>
		<link>http://pthok.wordpress.com/2011/08/12/radchart-with-net-mvc/</link>
		<comments>http://pthok.wordpress.com/2011/08/12/radchart-with-net-mvc/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 03:27:50 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=149</guid>
		<description><![CDATA[I have a webform app that I converted to a webform/mvc hybrid. Everything was fine until I tested the Telerik RadCharts on the existing webform pages. It had worked before the conversion. Now whenever the chart was supposed to load, I was confronted with this error message: Error loading RadChart image. You may also wish [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=149&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a webform app that I <a title="Add MVC capabilites to ASP.NET webform application" href="http://pthok.wordpress.com/2011/05/04/add-mvc-capabilites-to-asp-net-webform-application/">converted to a webform/mvc hybrid</a>. Everything was fine until I tested the Telerik RadCharts on the existing webform pages. It had worked before the conversion. Now whenever the chart was supposed to load, I was confronted with this error message:</p>
<p><code>Error loading RadChart image. You may also wish to check the ASP.NET Trace for further details. Display stack trace?</code></p>
<p>Clicking &#8220;OK&#8221; simply took me to a 404 page. I did notice the url of this was http://localhost:11239/reports/ChartImage.axd?UseSession=true&amp;ChartID=139df24e-1578-44d3-988b-c66f2d7df98c_chart_ctl00$MainContent$ReportChart1&amp;imageFormat=Png&amp;random=0.725656411482793</p>
<p>Somehow MVC routing disrupted the RadChart handler. To fix this, you need to explicitly define the HttpHanderUrl property of the RadChart.</p>
<p><code>ReportChart1.HttpHandlerUrl = ResolveUrl("~/ChartImage.axd");</code></p>
<p>That should fix it!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=149&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/08/12/radchart-with-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Entity Framework inheritance modeling</title>
		<link>http://pthok.wordpress.com/2011/07/20/entity-framework-inheritance-modeling/</link>
		<comments>http://pthok.wordpress.com/2011/07/20/entity-framework-inheritance-modeling/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 23:41:37 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[OOP]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=145</guid>
		<description><![CDATA[Two great articles on Entity Framework inheritance modeling: Table Per Type inheritance Table Per Hierarchy inheritance The third type of inheritance is Table Per Concrete. For a description of the three, see http://blogs.msdn.com/b/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=145&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Two great articles on Entity Framework inheritance modeling:</p>
<p><a href="http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-type-inheritance/">Table Per Type inheritance</a></p>
<p><a href="http://www.robbagby.com/entity-framework/entity-framework-modeling-table-per-hierarchy-inheritance/">Table Per Hierarchy inheritance</a></p>
<p>The third type of inheritance is Table Per Concrete. For a description of the three, see <a href="http://blogs.msdn.com/b/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx">http://blogs.msdn.com/b/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=145&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/07/20/entity-framework-inheritance-modeling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>More on ASP.NET webforms MVC hybrid</title>
		<link>http://pthok.wordpress.com/2011/05/04/more-on-asp-net-webforms-mvc-hybrid/</link>
		<comments>http://pthok.wordpress.com/2011/05/04/more-on-asp-net-webforms-mvc-hybrid/#comments</comments>
		<pubDate>Wed, 04 May 2011 19:34:06 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=142</guid>
		<description><![CDATA[Here&#8217;s another great article by Scott Hanselman about using different .NET front-end technologies in the same project. http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=142&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another great article by Scott Hanselman about using different .NET front-end technologies in the same project. <a href="http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx" target="_blank">http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=142&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/05/04/more-on-asp-net-webforms-mvc-hybrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Add MVC capabilites to ASP.NET webform application</title>
		<link>http://pthok.wordpress.com/2011/05/04/add-mvc-capabilites-to-asp-net-webform-application/</link>
		<comments>http://pthok.wordpress.com/2011/05/04/add-mvc-capabilites-to-asp-net-webform-application/#comments</comments>
		<pubDate>Wed, 04 May 2011 00:15:33 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=135</guid>
		<description><![CDATA[Because they both are built on the same framework, it&#8217;s pretty simple to get the two to play nice together. I used this as a guide: http://guy.dotnet-expertise.com/PermaLink,guid,4f5a8ea1-1f90-4b32-a635-1d73d906aeca.aspx. It&#8217;s an old article but it worked for me. I&#8217;m using Visual Studio 2010, .NET 4.0 and MVC 3 with Razor. The steps are as follows: Add the following [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=135&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Because they both are built on the same framework, it&#8217;s pretty simple to get the two to play nice together. I used this as a guide: <a href="http://guy.dotnet-expertise.com/PermaLink,guid,4f5a8ea1-1f90-4b32-a635-1d73d906aeca.aspx" target="_blank">http://guy.dotnet-expertise.com/PermaLink,guid,4f5a8ea1-1f90-4b32-a635-1d73d906aeca.aspx</a>. It&#8217;s an old article but it worked for me. I&#8217;m using Visual Studio 2010, .NET 4.0 and MVC 3 with Razor.</p>
<p>The steps are as follows:</p>
<p>Add the following 3 references to your project:<br />
System.Web.Abstraction<br />
System.Web.Mvc (be aware of what DLL version you&#8217;re adding)<br />
System.Web.Routing</p>
<p>Modify the project&#8217;s web.config. The easiest way is to create a new MVC project and copy over the value from there. You need to copy over the following sections, but don&#8217;t overwrite the existing values:<br />
Compilation<br />
Pages<br />
HttpHandlers (this didn&#8217;t apply for me because it wasn&#8217;t in the MVC web.config. Might be a .NET 4.0 or MVC 3 thing.)<br />
System.WebServer<br />
Runtime</p>
<p>Next modify Global.asax Application_Start method to perform the same functions as your temp MVC functions.</p>
<p>Then copy the web.config in the View folder of the MVC project and paste it in the View folder of your webform project. Also don&#8217;t forget to copy any scaffolding files such as _Layout.cshtml and _ViewStart.cshtml.</p>
<p>Finally, you need to let Visual Studio know that your project now handles MVC pages as well. This will allow you to use the IDE to create Controller, Views, and other MVC goodies. Open the temp MVC project file in notepad and look for the &lt;ProjectTypeGuids&gt; section. Copy that guid and add it to your webform project folder. The guid in my project is <strong>{E53F8FEA-EAE0-44A6-8774-FFD645390401}</strong>.</p>
<p>That&#8217;s it. Now you should be able to create MVC files just was if the webform project was an MVC project itself.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=135&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/05/04/add-mvc-capabilites-to-asp-net-webform-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>An easy way to create a self signed certificate</title>
		<link>http://pthok.wordpress.com/2011/04/14/an-easy-way-to-create-a-self-signed-certificate/</link>
		<comments>http://pthok.wordpress.com/2011/04/14/an-easy-way-to-create-a-self-signed-certificate/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 21:56:26 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=130</guid>
		<description><![CDATA[I needed to create a self signed cert to test my WCF service with username authentication in my dev environment (if you need help with this, I recommend http://www.devatwork.nl/2007/05/wcf-username-authentication/). Tried using Windows makecert cmd utility but it was give me problems. So I found a nifty tool from pluralsite called self-cert (http://www.pluralsight-training.net/community/blogs/keith/archive/2009/01/22/create-self-signed-x-509-certificates-in-a-flash-with-self-cert.aspx). It has a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=130&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to create a self signed cert to test my WCF service with username authentication in my dev environment (if you need help with this, I recommend <a href="http://www.devatwork.nl/2007/05/wcf-username-authentication/">http://www.devatwork.nl/2007/05/wcf-username-authentication/</a>). Tried using Windows makecert cmd utility but it was give me problems. So I found a nifty tool from pluralsite called self-cert <a href="//www.pluralsight-training.net/community/blogs/keith/archive/2009/01/22/create-self-signed-x-509-certificates-in-a-flash-with-self-cert.aspx">(http://www.pluralsight-training.net/community/blogs/keith/archive/2009/01/22/create-self-signed-x-509-certificates-in-a-flash-with-self-cert.aspx</a>). It has a simple intuitive UI and works like a charm. But don&#8217;t forget to run it as an administrator.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=130&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/04/14/an-easy-way-to-create-a-self-signed-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF basicHttpBinding &#8211; 504 Gateway Timeout</title>
		<link>http://pthok.wordpress.com/2011/01/14/wcf-basichttpbinding-504-gateway-timeout/</link>
		<comments>http://pthok.wordpress.com/2011/01/14/wcf-basichttpbinding-504-gateway-timeout/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 00:53:56 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=127</guid>
		<description><![CDATA[I had a WCF service secured with SSL, using wsHttpBinding, Message security mode, and UserName authentication. Everything worked find because I created the client app in VisualStudio and it automatically generated the appropriate tags in web.config. I was able to connection, authenticate and call methods without issue. But now I need to adjust the service [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=127&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a WCF service secured with SSL, using wsHttpBinding, Message security mode, and UserName authentication. Everything worked find because I created the client app in VisualStudio and it automatically generated the appropriate tags in web.config. I was able to connection, authenticate and call methods without issue.</p>
<p>But now I need to adjust the service to allow clients of other technologies to connect to it&#8230;more specifically PHP. PHP can&#8217;t connect to a service that uses wsHttpBinding. It has to be basicHttpBinding because it conforms to a broader standard.</p>
<p>The first thing to do is change system.serviceModel/services/service binding attribute to &#8220;basicHttpBinding&#8221;. Then create a &lt;basicHttpBinding&gt; node under system.serviceModel/bindings. Because we can&#8217;t use the Message security mode with basicHttpBinding, it needs to be changed to TransportWithMessageCredential. And that&#8217;s basically it for the service.</p>
<p>Now just publish it, connect to it from your client and call it a day. Well it didn&#8217;t go that smoothly for me. My client app I create for the original wsHttpBinding service was griping with an error: The remote server returned an error: (504) Gateway Timeout. Update the service reference? Nope that didn&#8217;t help. Remove and create the service reference? Nope, same error. So then I tried playing with the service configuration to no avail.</p>
<p>Finally I decided to read the stack trace and saw &#8220;There was no endpoint listening at https://myremoteservername/service.svc that could accept the message. This is often caused by an incorrect address or SOAP action.&#8221; Weird, how did it know the name of my server? I went back to my client&#8217;s web.config and looked at the endpoint VS created with I added the service reference. Indeed the address contained the server name! I changed it to the publicly accessible domain name and it works.</p>
<p>For some reason, when VS references a service with basicHttpBinding, it uses the server name. But I have no idea how it got the name in the first place. When adding the reference, I entered the public (correct) .svc url.</p>
<p>I&#8217;ll have to check with our network guy about it but I&#8217;m happy it&#8217;s finally working.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=127&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2011/01/14/wcf-basichttpbinding-504-gateway-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>iTextSharp &#8211; Removing Fields from PDF templates</title>
		<link>http://pthok.wordpress.com/2010/12/16/itextsharp-removing-fields-from-pdf-templates/</link>
		<comments>http://pthok.wordpress.com/2010/12/16/itextsharp-removing-fields-from-pdf-templates/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 23:13:47 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[iTextSharp]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=110</guid>
		<description><![CDATA[Sometimes the iTextSharp RemoveField() method won&#8217;t work. This is likely because the PDF template was created in Adobe LiveCycle. LiveCycle saves the file in XFA format. iTextSharp functionality against XfA files are limited to get and set. RemoveField(), at least for now, only works on AcroForm templates created in Adobe Acrobat. BTW, here&#8217;s the code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=110&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes the iTextSharp RemoveField() method won&#8217;t work. This is likely because the PDF template was created in Adobe LiveCycle. LiveCycle saves the file in <a href="http://en.wikipedia.org/wiki/XFA">XFA format</a>. iTextSharp functionality against XfA files are limited to get and set. RemoveField(), at least for now, only works on AcroForm templates created in Adobe Acrobat.</p>
<p>BTW, here&#8217;s the code to read from a template, edit a field and save to a new file&#8230;or output to the browser.</p>
<p><span style="color:#ffff99;">string templateFile = Server.MapPath(&#8220;pdf/FSSTemplate.pdf&#8221;);</span><br />
<span style="color:#ffff99;"> string newFile = Server.MapPath(&#8220;pdf/FSS.pdf&#8221;);</span></p>
<p><span style="color:#ffff99;">PdfReader reader = new PdfReader(templateFile);</span><br />
<span style="color:#ffff99;"> PdfStamper stamper = new PdfStamper(reader, new FileStream(newFile, FileMode.Create));</span></p>
<p><span style="color:#ffff99;">//Use the two lines below to write the pdf to the browser</span><br />
<span style="color:#ffff99;"> //MemoryStream ms = new System.IO.MemoryStream();</span><br />
<span style="color:#ffff99;"> //PdfStamper stamper = new PdfStamper(reader, ms);</span></p>
<p><span style="color:#ffff99;">AcroFields fields = stamper.AcroFields;</span><br />
<span style="color:#ffff99;"> fields.SetField(&#8220;field1&#8243;, &#8220;Hello World!&#8221;);</span></p>
<p><span style="color:#ffff99;">//Flatten and close</span><br />
<span style="color:#ffff99;"> stamper.FormFlattening = true;</span><br />
<span style="color:#ffff99;"> stamper.Close();</span></p>
<p><span style="color:#ffff99;">//If you&#8217;re writing to a file, you&#8217;re done here. If you want to write to the browser, use the code below.</span></p>
<p><span style="color:#ffff99;">Byte[] byteArray = ms.ToArray();</span><br />
<span style="color:#ffff99;"> ms.Flush();</span><br />
<span style="color:#ffff99;"> ms.Close();</span><br />
<span style="color:#ffff99;"> Response.BufferOutput = true;</span><br />
<span style="color:#ffff99;"> Response.Clear();</span><br />
<span style="color:#ffff99;"> Response.ClearHeaders();</span><br />
<span style="color:#ffff99;"> string timestamp = DateTime.Now.ToString(&#8220;MMddyyyy_HHmmss&#8221;);</span><br />
<span style="color:#ffff99;"> Response.AddHeader(&#8220;Content-Disposition&#8221;, &#8220;attachment; filename=PDF_&#8221; + timestamp + &#8220;.pdf&#8221;);</span><br />
<span style="color:#ffff99;"> Response.ContentType = &#8220;application/pdf&#8221;;</span><br />
<span style="color:#ffff99;"> Response.BinaryWrite(byteArray);</span><br />
<span style="color:#ffff99;"> Response.End();</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=110&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2010/12/16/itextsharp-removing-fields-from-pdf-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET 3.5, Entity Framework, Add Function Import&#8230;</title>
		<link>http://pthok.wordpress.com/2010/09/08/net-3-5-entity-framework-add-function-import/</link>
		<comments>http://pthok.wordpress.com/2010/09/08/net-3-5-entity-framework-add-function-import/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 07:12:25 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=102</guid>
		<description><![CDATA[Gahhh!&#8230;? If your project is built on .NET 3.5 and you try to create an Entity Framework function using the &#8220;Add Function Import&#8230;&#8221; tool for a stored procedure that doesn&#8217;t return an EF object (instead return a scalar or nothing), the code for the function is not generated. Basically, all your spocs have to return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=102&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Gahhh!&#8230;? If your project is built on .NET 3.5 and you try to create an Entity Framework function using the &#8220;Add Function Import&#8230;&#8221; tool for a stored procedure that doesn&#8217;t return an EF object (instead return a scalar or nothing), the code for the function is not generated. Basically, all your spocs have to return an equivalent of one of your data objects. It all works fine if I use .NET 4.0 but I don&#8217;t think our servers have the framework installed yet. What to do&#8230;what to do&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=102&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2010/09/08/net-3-5-entity-framework-add-function-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing SSL on IIS7 with host headers</title>
		<link>http://pthok.wordpress.com/2010/06/10/installing-ssl-on-iis7-with-host-headers/</link>
		<comments>http://pthok.wordpress.com/2010/06/10/installing-ssl-on-iis7-with-host-headers/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 22:52:51 +0000</pubDate>
		<dc:creator>pthok</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://pthok.wordpress.com/?p=90</guid>
		<description><![CDATA[I have one wildcard SSL certificate and needed to use it on multiple subdomains. The IIS7 UI doesn&#8217;t allow you to specify the host header when configuring an ssl binding. The only way I found to do it was by using appcmd from the command prompt. The command works as such: appcmd set site /site.name:"&#60;IISSiteName&#62;" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=90&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have one wildcard SSL certificate and needed to use it on multiple subdomains. The IIS7 UI doesn&#8217;t allow you to specify the host header when configuring an ssl binding. The only way I found to do it was by using appcmd from the command prompt. The command works as such:</p>
<p><code>appcmd set site /site.name:"&lt;IISSiteName&gt;" /+bindings.[protocol='https',bindingInformation='*:443:&lt;hostHeaderValue&gt;']</code></p>
<p>&lt;IISSiteName&gt; is the name of your site in IIS. &lt;hostHeaderValue&gt; is the host header you&#8217;re trying to bind to.</p>
<p>I found this tidbit on <a href="http://www.sslshopper.com/article-ssl-host-headers-in-iis-7.html" target="_blank">http://www.sslshopper.com/article-ssl-host-headers-in-iis-7.html</a>. According to their steps, you should install the ssl on one site with the admin console first before using appcmd. I&#8217;m not sure if this is true. I assume you can use appcmd for all of them.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pthok.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pthok.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pthok.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pthok.wordpress.com&amp;blog=3483124&amp;post=90&amp;subd=pthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pthok.wordpress.com/2010/06/10/installing-ssl-on-iis7-with-host-headers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/026d6be1a14c9575eaed498af227fc9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pthok</media:title>
		</media:content>
	</item>
	</channel>
</rss>
