<?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>Tech.It.2.Me-&#62;{By.Anton.Perez}</title>
	<atom:link href="http://antonperez.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:06:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>&#8220;Cannot add duplicate collection entry of type&#8230;&#8221; error in IIS 7/7.5</title>
		<link>http://antonperez.com/2012/02/09/cannot-add-duplicate-collection-entry-of-type-error-in-iis-77-5/</link>
		<comments>http://antonperez.com/2012/02/09/cannot-add-duplicate-collection-entry-of-type-error-in-iis-77-5/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 01:52:41 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://antonperez.com/?p=1337</guid>
		<description><![CDATA[I came across an “HTTP Error 500.19 – Internal Server Error” error when trying to access a static page on IIS 7 running on Windows 2008 Server.&#160; So, here’s what I did that fixed the issue: 1. Checked the event logs first and saw this: 2. Checked out the ISAPI Filters of the “Default Web [...]]]></description>
			<content:encoded><![CDATA[<p>I came across an “HTTP Error 500.19 – Internal Server Error” error when trying to access a static page on IIS 7 running on Windows 2008 Server.&#160; So, here’s what I did that fixed the issue:</p>
<p>1. Checked the event logs first and saw this:</p>
<p><a href="http://antonperez.com/wp-content/uploads/2012/02/image4.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://antonperez.com/wp-content/uploads/2012/02/image_thumb4.png" width="414" height="291" /></a></p>
<p>2. Checked out the ISAPI Filters of the “Default Web Site” as stated in the event log and look what came up:</p>
<p><a href="http://antonperez.com/wp-content/uploads/2012/02/image1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://antonperez.com/wp-content/uploads/2012/02/image_thumb1.png" width="410" height="249" /></a></p>
<p>3. Next, checked “c:\Windows\System32\inetsrv\config\applicationHost.config” and voila, saw two entries for “ASP.Net_2.0_for_V1.1”:</p>
<p>Line 312: </p>
<p><font face="Courier New">&lt;isapiFilters&gt;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter name=&quot;ASP.Net_2.0.50727.0&quot; path=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll&quot; enableCache=&quot;true&quot; preCondition=&quot;bitness32,runtimeVersionv2.0&quot; /&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter name=&quot;ASP.Net_2.0_for_V1.1&quot; path=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll&quot; enableCache=&quot;true&quot; preCondition=&quot;runtimeVersionv1.1&quot; /&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter name=&quot;ASP.Net_4.0_64bit&quot; path=&quot;c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_filter.dll&quot; enableCache=&quot;true&quot; preCondition=&quot;runtimeVersionv4.0,bitness64&quot; /&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;filter name=&quot;ASP.Net_4.0_32bit&quot; path=&quot;c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll&quot; enableCache=&quot;true&quot; preCondition=&quot;runtimeVersionv4.0,bitness32&quot; /&gt;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/isapiFilters&gt;</font></p>
<p>Line 960:</p>
<p><font face="Courier New">&lt;location path=&quot;Default Web Site&quot;&gt;      <br />&lt;system.webServer&gt;       <br />&lt;isapiFilters&gt;       <br />&lt;filter name=&quot;ASP.Net_2.0_for_V1.1&quot; path=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll&quot; /&gt;       <br />&lt;/isapiFilters&gt;       <br />&lt;/system.webServer&gt;</font></p>
<p>After removing the second <em>&lt;filter name…&gt; </em>in line 960 (like so below), and restarting IIS, everything worked as expected.&#160; </p>
<p><font face="Courier New">&lt;location path=&quot;Default Web Site&quot;&gt;      <br />&lt;system.webServer&gt;       <br />&lt;isapiFilters&gt;       <br />&lt;/isapiFilters&gt;       <br />&lt;/system.webServer&gt;</font></p>
<p>Hope this helps someone out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2012/02/09/cannot-add-duplicate-collection-entry-of-type-error-in-iis-77-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell Pack</title>
		<link>http://antonperez.com/2012/02/09/powershell-pack/</link>
		<comments>http://antonperez.com/2012/02/09/powershell-pack/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 22:33:44 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://antonperez.com/2012/02/09/powershell-pack/</guid>
		<description><![CDATA[In case you didn’t know, PowerShell has a pack that has offers add-on goodies.&#160; Get it at: http://archive.msdn.microsoft.com/PowerShellPack/Release/ProjectReleases.aspx?ReleaseId=3341]]></description>
			<content:encoded><![CDATA[<p>In case you didn’t know, PowerShell has a pack that has offers add-on goodies.&#160; Get it at:</p>
<p><a title="http://archive.msdn.microsoft.com/PowerShellPack/Release/ProjectReleases.aspx?ReleaseId=3341" href="http://archive.msdn.microsoft.com/PowerShellPack/Release/ProjectReleases.aspx?ReleaseId=3341">http://archive.msdn.microsoft.com/PowerShellPack/Release/ProjectReleases.aspx?ReleaseId=3341</a></p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2012/02/09/powershell-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 access denied on &#8220;Publish&#8221;</title>
		<link>http://antonperez.com/2012/02/08/visual-studio-2010-access-denied-on-publish/</link>
		<comments>http://antonperez.com/2012/02/08/visual-studio-2010-access-denied-on-publish/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 23:10:20 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[General Development]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://antonperez.com/2012/02/08/visual-studio-2010-access-denied-on-publish/</guid>
		<description><![CDATA[I was getting the errors below when publishing to a file system: Connecting to C:\inetpub\wwwroot\webapp&#8230; Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config. Copying all files to temporary location below for package/publish: obj\Debug\Package\PackageTmp. Publishing folder /&#8230; Unable to add &#8216;Web.config&#8217; to the Web site.&#160; Unable to add file &#8216;Web.config&#8217;.&#160; Access is denied. Publishing folder Account&#8230; Publishing folder [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting the errors below when publishing to a file system:</p>
<blockquote><p>Connecting to C:\inetpub\wwwroot\<em>webapp</em>&#8230;       <br />Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.       <br />Copying all files to temporary location below for package/publish:       <br />obj\Debug\Package\PackageTmp.       <br />Publishing folder /&#8230;       <br />Unable to add &#8216;Web.config&#8217; to the Web site.&#160; Unable to add file &#8216;Web.config&#8217;.&#160; Access is denied.       <br />Publishing folder Account&#8230;       <br />Publishing folder bin&#8230;       <br />Unable to add &#8216;bin/<em>webapp</em>.dll&#8217; to the Web site.&#160; Unable to add file &#8216;bin\<em>webapp</em>.dll&#8217;.&#160; Access is denied.       <br />Unable to add &#8216;bin/<em>webapp</em>.pdb&#8217; to the Web site.&#160; Unable to add file &#8216;bin\<em>webapp</em>.pdb&#8217;.&#160; Access is denied.       <br />Publishing folder Scripts&#8230;       <br />Publishing folder Styles&#8230;       <br />========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========       <br />========== Publish: 0 succeeded, 1 failed, 0 skipped ==========</p>
</blockquote>
<p>The fix: Open Visual Studio 2010 with “Run as Adminstrator” (right-click it and choose that option).</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2012/02/08/visual-studio-2010-access-denied-on-publish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell: Extracting certain lines in any file</title>
		<link>http://antonperez.com/2011/10/28/powershell-extracting-certain-lines-in-any-file/</link>
		<comments>http://antonperez.com/2011/10/28/powershell-extracting-certain-lines-in-any-file/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 23:09:59 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://antonperez.com/2011/10/28/powershell-extracting-certain-lines-in-any-file/</guid>
		<description><![CDATA[I had quite a large file that I needed to parse, and the challenge was to extract certain lines that didn’t match a certain condition.&#160; The solution . . . PowerShell, like so: select-string -path filename -notmatch &#34;criteria&#34; &#124; foreach {$_.line} &#124; out-file -filepath filename -encoding ascii That’s it!]]></description>
			<content:encoded><![CDATA[<p>I had quite a large file that I needed to parse, and the challenge was to extract certain lines that didn’t match a certain condition.&#160; The solution . . . PowerShell, like so:</p>
<p><font face="Courier New">select-string -path <em>filename</em> -notmatch &quot;<em>criteria</em>&quot; | foreach {$_.line} | out-file -filepath <em>filename</em> -encoding ascii</font></p>
<p>That’s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2011/10/28/powershell-extracting-certain-lines-in-any-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell: Deleting entire lines in a text file based on a partial string match</title>
		<link>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/</link>
		<comments>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 00:24:11 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/</guid>
		<description><![CDATA[PS C:\workspace&#62; (gc “fileToParse.txt”) -notmatch &#34;&#60;criteria&#62;&#34; &#124; out-file &#34;resultFile.txt&#34; Note: &#60;Criteria&#62;, for example, “not&#34;.]]></description>
			<content:encoded><![CDATA[<p>PS C:\workspace&gt; (gc “fileToParse.txt”) -notmatch &quot;&lt;<em>criteria&gt;</em>&quot; | out-file    <br />&quot;resultFile.txt&quot;</p>
<p>Note: &lt;Criteria&gt;, for example, “not&quot;.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2011/07/11/powershell-deleting-entire-lines-in-a-text-file-based-on-a-partial-string-match/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

