<?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/"
	>

<channel>
	<title>Chad Scharf&#039;s Weblog &#187; vista</title>
	<atom:link href="http://www.chadscharf.com/index.php/tags/vista/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chadscharf.com</link>
	<description>It&#039;s always time to upgrade!</description>
	<lastBuildDate>Fri, 28 Oct 2011 22:14:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>You canâ€™t always blame Bill when Vista breaks</title>
		<link>http://www.chadscharf.com/index.php/2008/01/you-can%e2%80%99t-always-blame-bill-when-vista-breaks/</link>
		<comments>http://www.chadscharf.com/index.php/2008/01/you-can%e2%80%99t-always-blame-bill-when-vista-breaks/#comments</comments>
		<pubDate>Sat, 12 Jan 2008 02:51:00 +0000</pubDate>
		<dc:creator>Chad</dc:creator>
				<category><![CDATA[IIS7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[dcom]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://chadscharf.com/post.aspx?id=c6b4a9a3-40ed-49d1-965e-60d11156ccc0</guid>
		<description><![CDATA[Just recently I decided to upgrade my development machine at the office from Windows XP to Windows Vista. Taking into consideration the ability to play around with the new IIS7, as well as take the opportunity to upgrade to Visual Studio 2008 Team Suite. I can say I&#8217;m happy that I did, I even did [...]<p><a href="http://www.chadscharf.com/index.php/2008/01/you-can%e2%80%99t-always-blame-bill-when-vista-breaks/">You canâ€™t always blame Bill when Vista breaks</a> is a post from: <a href="http://www.chadscharf.com">Chad Scharf&#039;s Weblog</a>. For software consulting services please visit <a href="http://www.scharfholdings.com">Scharf Holdings, LLC</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Just recently I decided to upgrade my development machine at the office from Windows XP to Windows Vista. Taking into consideration the ability to play around with the new IIS7, as well as take the opportunity to upgrade to Visual Studio 2008 Team Suite. I can say I&#8217;m happy that I did, I even did a clean install since Vista Enterprise did not support an upgrade from XP. Then the fun started. After spending a day and a half re-installing all of my development tools, MS Office, hunting down new drivers for the video card, sound card as well as running Windows Updates, etc I was up and running without a care in the world. <span id="more-11"></span></p>
<h2>Administrator Mode</h2>
<p>OK, so Visual Studio 2008 likes to run with elevated privileges in order to access web sites on the local IIS server. That&#8217;s not so bad aside from losing the ability to drag and drop items into the IDE from Explorer. Then, about 4 weeks into using Windows Vista and Visual Studio 2008, I hit an odd snag. About 3 weeks ago I went to open a solution containing a web project, only to get this all too familiar message:</p>
<p><em>To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. By default, Windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator. To run Visual Studio with administrative privileges, right-click the Visual Studio icon and then click &#8216;Run as administrator. </em></p>
<p style="text-align: center"><img title="To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. By default, Windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator. To run Visual Studio with administrative privileges, right-click the Visual Studio icon and then click 'Run as administrator." src="/files/011208_0551_Youcantalwa1.gif" alt="To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. By default, Windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator. To run Visual Studio with administrative privileges, right-click the Visual Studio icon and then click 'Run as administrator." width="532" height="324" /><em> </em></p>
<p>Turns out, I WAS running Visual Studio under Administrative mode; however it didn&#8217;t seem to be recognizing this fact. After cursing Bill a few times I closed Visual Studio, re-opened it from the actual executable itself running as administrator; same deal. I rebooting my computer only to find that it still did not work, and on top of that my sound card was not working, however device manager said that is was operational and no errors were reported in any of the Event logs.</p>
<p>Now, no web projects and no sound card, what&#8217;s next? I open up the IIS7 manager to check on my web settings when I find this:</p>
<p style="text-align: center"><img style="width: 530px; height: 208px;" src="/files/011208_0551_Youcantalwa2.gif" alt="" width="530" height="208" /></p>
<p>The red &#8220;X&#8221; on the Default Web Site and a status of &#8220;Access Denied&#8221; for the web site in the web site list. I go to check my applications pools, and sure enough, the same thing:</p>
<p style="text-align: center"><img src="/files/011208_0551_Youcantalwa3.gif" alt="" width="543" height="286" /></p>
<p>The odd thing about all of this was that I could still access all of the sites in my Default Web Site, either using the &#8220;Browse&#8221; command from the IIS Manager or simply opening Internet Explorer and going to http://localhost/whatever. I attempted to run Windows Update which also gave me cryptic errors such as &#8220;WAS does not appear to be enabled&#8221;. This was about the time I opened a support ticket with Microsoft.</p>
<h2>Tinker Not</h2>
<p>Little did I realize as I told the IIS team support technician that there were no recent changes to my computer. There was however one significant detail that I didn&#8217;t think was significant at the time: I had rebooted my computer. Typically I simply lock my workstation for the night or for the weekend and perhaps reboot once every other month. Turns out the day before this all started happening I had rebooted my machine for the 3<sup>rd</sup> time since installing Windows Vista, this was a mistake.</p>
<p>Turns out when you change DCOM security settings on your machine using <strong><em>dcomcnfg</em></strong>, and Windows Vista warns you that things may stop working, and you ignore these warning it&#8217;s really YOUR fault your machine sucks and not Microsoft&#8217;s. After all, I was warned when I inadvertently tried to fully open all DCOM and MSDTC permissions on my box which I was accustomed to doing COM development on previous versions of Windows. Two little drop down boxes that I had set were the cause for all of this grief, &#8220;<strong>DCOM Default Authentication Level</strong>&#8221; and &#8220;<strong>Default Impersonation Level</strong>&#8220;.</p>
<p>These were the settings I had chosen without guidance or really much thought:</p>
<p style="text-align: center"><img src="/files/011208_0551_Youcantalwa4.gif" alt="" width="418" height="566" /></p>
<p>Turns out these configuration changes are BAD! Do not do this unless you want a Vista pile of worthless garbage under your desk. Of course these changes didn&#8217;t start affecting services until I had rebooted, a couple of weeks after making this change which I had completely forgotten about.</p>
<p>Below is what I should have kept, and sure enough shortly after resetting these and rebooting not only did IIS 7 begin working again as expected, Visual Studio, my sound card, Windows Update, my CD Burner as well as my sanity were back in check as well.</p>
<p style="text-align: center"><img src="/files/011208_0551_Youcantalwa5.gif" alt="" width="418" height="566" /></p>
<p>It was all thanks to this <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1387492&amp;SiteID=1">post</a> that I found on an MSDN forum while trying to troubleshoot my sound card that lead to start looking at COM permissions. I followed all the steps in this post and many more similar ones to no avail, until I vaguely remember screwing around with the DCOM security configuration and more importantly the nice warning message this had given me when I changes those settings. Sure enough after changing them back I&#8217;m back in business and promise to never ignore Bill again.</p>
<h2>Thanks Bill</h2>
<p>So you can say what you want about Microsoft and Windows Vista, but I love it and can&#8217;t wait for some of the new and emerging stuff that&#8217;s soon to come. After all, had I been using Linux or a Mac, the OS would have let me be stupid without a warning and I would have never been the wiser. So for those developers and techies that like to tinker, the best of luck to ya, I&#8217;m sticking to Windows defaults from here on out, they&#8217;re really not that bad anyway.</p>
<p><a href="http://www.chadscharf.com/index.php/2008/01/you-can%e2%80%99t-always-blame-bill-when-vista-breaks/">You canâ€™t always blame Bill when Vista breaks</a> is a post from: <a href="http://www.chadscharf.com">Chad Scharf&#039;s Weblog</a>. For software consulting services please visit <a href="http://www.scharfholdings.com">Scharf Holdings, LLC</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chadscharf.com/index.php/2008/01/you-can%e2%80%99t-always-blame-bill-when-vista-breaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

