<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>IIS</title>
        <link>http://geekswithblogs.net/TimH/category/3331.aspx</link>
        <description>IIS</description>
        <language>en-NZ</language>
        <copyright>Tim Huffam</copyright>
        <managingEditor>timhuffam@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>ASP.NET error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/09/05/90287.aspx</link>
            <description>&lt;P&gt;The following error occured because a web.config file existed, in a directory beneath my main app root dir, should not have been there:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.&amp;nbsp; This error can be caused by a virtual directory not being configured as an application in IIS.&amp;nbsp;C:\Dev\SVN\authenticationservice\authenticationservice\aspnet_webadmin\2_0_50110\web.config&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;It is actually valid to have a web.config in a dir beneath your app root dir, but you need to make sure allowDefinition is configured correctly.&amp;nbsp; In my case, however,&amp;nbsp;this file should not have been there - so to fix the problem I just deleted it.&lt;/P&gt;
&lt;P&gt;HTH&lt;BR&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=90287"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=90287" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/90287.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/09/05/90287.aspx</guid>
            <pubDate>Tue, 05 Sep 2006 00:07:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/90287.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/09/05/90287.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/90287.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/90287.aspx</trackback:ping>
        </item>
        <item>
            <title>Remote debugging with ASP.NET 2.0 - finding the process id (PID) of the worker process.</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/08/08/87355.aspx</link>
            <description>&lt;P&gt;To start remote debugging an ASP.NET 2.0 app (assuming the app is up and running on the remote server):&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the remote server start the Visual Studio 2005 Remote Debugger.&amp;nbsp; For this you need to have the VS2005 Tools installed (not necessarily the full VS2005).&lt;/LI&gt;
&lt;LI&gt;On your local machine, within VS2005 select Debug - Attach to Process...&lt;/LI&gt;
&lt;LI&gt;In the Qualifier field (in the Attach to Process screen) enter the name of the remote server and press ENTER.&lt;/LI&gt;
&lt;LI&gt;Select the IIS&amp;nbsp;worker process (w3wp.exe) that is running your web app* and click Attach.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;* This is the tricky part - as there is nothing on this screen that helps us identify which of the w3wp.exe process is the one we want.&amp;nbsp; To determine this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Log on the the remote server and start a command prompt session.&lt;/LI&gt;
&lt;LI&gt;Run the following script: c:\windows\system32\iisapp.vbs.&amp;nbsp; This script will list all the currently running w3wp.exe processes, listing their PID and application pool id.&lt;BR&gt;The application pool id is the only relation between the pid and your app.&amp;nbsp; &lt;/LI&gt;
&lt;LI&gt;Use the apprioriate PID to identify the correct w3wp.exe on the Attach to Process screen.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=87355"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=87355" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/87355.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/08/08/87355.aspx</guid>
            <pubDate>Mon, 07 Aug 2006 22:56:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/87355.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/08/08/87355.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/87355.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/87355.aspx</trackback:ping>
        </item>
        <item>
            <title>Manually configure a web app dir for a specific version of the .NET framework</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/08/04/87108.aspx</link>
            <description>&lt;P&gt;In some cases you may want or need to change the version of .NET that a particular web application directory uses.&amp;nbsp; Normally this is done via the ASP.NET tab on the IIS properties page for the web app, however it can also be done manually at the command line...&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;CD into the dir containing the version of .NET that you require eg: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322&lt;/LI&gt;
&lt;LI&gt;Run aspnet_regiis.exe specifying the name of the dir you want this set against. &lt;BR&gt;eg aspnet_regiis.exe -s W3SVC/&lt;EM&gt;nnn&lt;/EM&gt;/ROOT/&lt;EM&gt;xxx&lt;/EM&gt; (where &lt;EM&gt;nnn&lt;/EM&gt; is the web site identifier and &lt;EM&gt;xxx&lt;/EM&gt; is the dir name)&amp;nbsp;&lt;BR&gt;&amp;nbsp; eg aspnet_regiis.exe -s W3SVC/1/ROOT/MySampleApp&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;It's that simple.&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=87108"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=87108" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/87108.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/08/04/87108.aspx</guid>
            <pubDate>Fri, 04 Aug 2006 00:24:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/87108.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/08/04/87108.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/87108.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/87108.aspx</trackback:ping>
        </item>
        <item>
            <title>Error using client certs: The page requires a valid client certificate (403.13).  How to turn off CRL checks in IIS.</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/06/12/81553.aspx</link>
            <description>&lt;P&gt;The following&amp;nbsp;error may occur when trying to use a client cert for the first time (this error is from IIS 5):&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;STRONG&gt;The page requires a valid client certificate&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;The page you are trying to view requires the use of a valid client certificate. Your client certificate was revoked, or the revocation status could not be determined. The certificate is used for authenticating you as a valid user of the resource. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;HTTP 403.13 - Forbidden: Client certificate revoked&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The cause of this is usually&amp;nbsp; "&lt;FONT color=#0000ff&gt;the revocation status could not be determined.&lt;/FONT&gt;". &amp;nbsp;This is because CRL (certificate revocation list) checking has not been setup on the server.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The simple solution for this (for development), is to just disable CRL checking.&lt;/P&gt;
&lt;P&gt;You can do this using an IIS metabase tool (eg IIS Metabase Explorer) or adsutil, or, if you dont have these tools installed, you can run some VBScript to disable it - and this is how:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a VBScript file with the following code:&lt;BR&gt;
&lt;DIR&gt;&lt;FONT face="Courier New" color=#0000ff size=2&gt;
&lt;P&gt;Set oWeb = GetObject("IIS://localhost/W3SVC")&lt;BR&gt;oWeb.CertCheckMode = 1&lt;BR&gt;oWeb.SetInfo&lt;BR&gt;Set oWeb = Nothing&lt;/P&gt;&lt;/FONT&gt;&lt;/DIR&gt;&lt;/LI&gt;
&lt;LI&gt;Save it to a .vbs file eg c:\turnoffcrlcheck.vbs&lt;/LI&gt;
&lt;LI&gt;Execute the script at the command prompt eg:&lt;/LI&gt;&lt;/OL&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;cscript.exe turnoffcrlcheck.vbs&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P dir=ltr&gt;And that's it.&amp;nbsp; You should not need to restart IIS.&lt;/P&gt;
&lt;P dir=ltr&gt;HTH&lt;/P&gt;
&lt;P dir=ltr&gt;Tim&lt;/P&gt;
&lt;OL&gt;
&lt;DIR&gt;&lt;FONT size=2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIR&gt;&lt;/FONT&gt;&lt;/OL&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=81553"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=81553" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/81553.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/06/12/81553.aspx</guid>
            <pubDate>Sun, 11 Jun 2006 21:57:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/81553.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/06/12/81553.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/81553.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/81553.aspx</trackback:ping>
        </item>
        <item>
            <title>Error (m_safeCertContext is an invalid handle.) when accessing a client certificate using .NET 2.0/VS2005 </title>
            <link>http://geekswithblogs.net/TimH/archive/2006/04/18/75477.aspx</link>
            <description>&lt;P&gt;This error (m_safeCertContext is an invalid handle.) occurs when you try to access a client cert (or a member of the cert) from a ASP.NET 2.0 application developed using VS2005 eg:&lt;/P&gt;&lt;FONT color=#008080&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;FONT color=#008080&gt;X509Certificate&lt;/FONT&gt; cert = &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#008080&gt;X509Certificate&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;(Request.ClientCertificate.Certificate);&lt;BR&gt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt; certSerial =&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;cert.GetSerialNumberString();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;The error is thrown because no valid certificate is found.&amp;nbsp; This can be caused by either:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A problem with the cert.&amp;nbsp; A common reason for this in a development environment is one of the cert properties differing from that of the environment eg&amp;nbsp;cert common name does not match the site name.&amp;nbsp; I guess this would also occur if the cert had expired.&lt;/LI&gt;
&lt;LI&gt;The cert did not get passed to the request.&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;If the cert has not been passed to the request.&amp;nbsp; Then it's probably because you've not setup the website to be able to accept certs.&amp;nbsp; To do this you need to do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Host the project from IIS - not the thin web server that is bundled with VS2005.&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;From within VS2005 select File - New Web Site.&lt;/LI&gt;
&lt;LI&gt;Select the Location of HTTP then enter the path eg: &lt;A href="http://localhost/MyWebSite"&gt;http://localhost/MyWebSite&lt;/A&gt;.&amp;nbsp; Note that you don't have to use HTTPS just yet (I find it easier for development to use HTTP then when deploying to UAT or Production to use HTTPS).&lt;/LI&gt;&lt;/OL&gt;
&lt;LI&gt;Code up a test form.&lt;/LI&gt;
&lt;LI&gt;Go into IIS Admin - right click on the new app (MyWebSite) and select Properties.&lt;/LI&gt;
&lt;LI&gt;On the Directory Security tab, click Edit... under 'Secure communications'.&lt;/LI&gt;
&lt;LI&gt;Make sure 'Accept client certificates' is checked.&lt;/LI&gt;
&lt;LI&gt;When you&amp;nbsp;run your app - make sure you use HTTPS in the url eg: &lt;A href="https://localhost/MyWebSite"&gt;https://localhost/MyWebSite&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;A href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=232760&amp;amp;SiteID=1"&gt;Here's&lt;/A&gt; another article about&amp;nbsp;this.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75477"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=75477" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/75477.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/04/18/75477.aspx</guid>
            <pubDate>Tue, 18 Apr 2006 01:58:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/75477.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/04/18/75477.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/75477.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/75477.aspx</trackback:ping>
        </item>
        <item>
            <title>Error: The underlying connection was closed: The remote name could not be resolved. When doing HttpRequest from ASP.NET.</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/02/09/68811.aspx</link>
            <description>&lt;P&gt;The following error occured when trying to open a web page (ASP.NET) that was doing an HttpRequest.&lt;/P&gt;
&lt;P&gt;"The underlying connection was closed: The remote name could not be resolved."&lt;/P&gt;
&lt;P&gt;This is usually caused because the ASP.NET app is on a network that is using a proxy server - and as ASP.NET does not run as a user account, it does not have access to the proxy settings in the registry.&lt;/P&gt;
&lt;P&gt;To resolve add the following section to your web.config file.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&amp;lt;defaultProxy&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;proxy&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usesystemdefault = "false"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyaddress="http://proxyserver:port"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bypassonlocal="true"&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;BR&gt;&amp;lt;/defaultProxy&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Note that this must be placed within a &amp;lt;system.net&amp;gt; section (not system.web!).&lt;/P&gt;
&lt;P&gt;MS have a kb article on it &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;330221"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=68811"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=68811" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/68811.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/02/09/68811.aspx</guid>
            <pubDate>Wed, 08 Feb 2006 20:20:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/68811.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/02/09/68811.aspx#feedback</comments>
            <slash:comments>5</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/68811.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/68811.aspx</trackback:ping>
        </item>
        <item>
            <title>IE bug: HTTP POST with zero content-length (content-length = 0) (even though there is data in the post request)</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx</link>
            <description>&lt;P&gt;This little gem comes to us courtesy of MS's IE, whereby it resets the connection and sets content-length to 0 (zero), even though there is data in the post request, when the keep-alive timeout expires.&lt;/P&gt;
&lt;P&gt;Fortunately this only occurs when using HTTPS, and apparently it's limited to a particular version of IE (although I'm not 100% convinced about this).&lt;/P&gt;
&lt;P&gt;This bug is documented very well &lt;A href="http://telanis.cns.ualberta.ca/"&gt;here&lt;/A&gt; and by ibm &lt;A href="http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Plug-in/1165399.html"&gt;here&lt;/A&gt;, and an typically difficult to understand MS solution &lt;A href="http://support.microsoft.com/default.aspx?kbid=831167"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Another solution I think may work (if you're using ASP.NET), is to flush the response manually (Response.Flush())- my understanding is that this will disable the keep-alive header that ASP.NET sends out.  Basically should allow you to still have the keep-alive setting switched on on your IIS server and by manually inserting the Flush() method you can restrict where this occurs to individual pages or apps (eg Global.asax).  Although I've not tried this and could be completely wrong ;-)&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=67183"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=67183" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/67183.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx</guid>
            <pubDate>Thu, 26 Jan 2006 01:35:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/67183.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/01/26/67183.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/67183.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/67183.aspx</trackback:ping>
        </item>
        <item>
            <title>IIS error: The parameter is incorrect</title>
            <link>http://geekswithblogs.net/TimH/archive/2005/11/18/60496.aspx</link>
            <description>&lt;P&gt;This error occurs within IIS 6 when you try to start your web site and it has not been assigned to a valid application pool.&lt;/P&gt;
&lt;P&gt;This usually happens when the default app pool has been deleted.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=60496"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=60496" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/60496.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2005/11/18/60496.aspx</guid>
            <pubDate>Fri, 18 Nov 2005 00:20:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/60496.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2005/11/18/60496.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/60496.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/60496.aspx</trackback:ping>
        </item>
        <item>
            <title>Uninstall IE 7</title>
            <link>http://geekswithblogs.net/TimH/archive/2005/09/16/54068.aspx</link>
            <description>&lt;p&gt;Those of you wanting to know how to remove this annoying version on IE - click &lt;a href="http://geekswithblogs.net/virgild/archive/2005/07/28/48537.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However, if you are as unfortunate as myself, and have had another user has install it (IE 7 beta) on your PC, then you will get this error:&lt;/p&gt;
&lt;p&gt;"Internet Explorer 7 Beta 1 cannot be uninstalled from this user account.  Please log on to the same user account from which it was installed and try again."&lt;/p&gt;
&lt;p&gt;Even if you belong to the local administrators group.   Brilliant!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;*** Update:  For those of you wanting a far superior browser that has none of the IE problems - I strongly recommend &lt;a href="http://www.mozilla.com/en-US/firefox/"&gt;FireFox&lt;/a&gt; - which I now use all the time.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;t&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=54068"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=54068" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/54068.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2005/09/16/54068.aspx</guid>
            <pubDate>Fri, 16 Sep 2005 00:14:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/54068.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2005/09/16/54068.aspx#feedback</comments>
            <slash:comments>102</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/54068.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/54068.aspx</trackback:ping>
        </item>
    </channel>
</rss>