<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Iis on Wapnet Blog</title><link>https://blog.wapnet.nl/category/iis/</link><description>Recent content in Iis on Wapnet Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 25 Aug 2016 13:50:41 +0000</lastBuildDate><atom:link href="https://blog.wapnet.nl/category/iis/feed.xml" rel="self" type="application/rss+xml"/><item><title>IIS Log Analyzer</title><link>https://blog.wapnet.nl/2016/08/iis-log-analyzer/</link><pubDate>Thu, 25 Aug 2016 13:50:41 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=1300</guid><description>&lt;p&gt;Download &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=24659"&gt;Log Parser 2.2&lt;/a&gt; from the microsoft site. After the installation &lt;a href="https://www.google.nl/search?q=Log+Parser+2.2+iis+examples"&gt;google&lt;/a&gt; is your friend&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;Hits on a particular page by IP address&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;LogParser -i:IISW3C &amp;#34;SELECT c-ip, COUNT(*) As Hits FROM C:\WINDOWS\system32\LogFiles\temp\*.log WHERE EXTRACT_FILENAME(cs-uri-stem) = &amp;#39;default.aspx&amp;#39; AND sc-status = &amp;#39;200&amp;#39; GROUP BY c-ip Order by Hits DESC&amp;#34; -o:DataGrid
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Another great way to analyse log files is the tool: &lt;a href="https://gallery.technet.microsoft.com/Log-Parser-Studio-cd458765"&gt;Log Parser Studio.&lt;/a&gt; With this tool you can easy query loggings with a GUI:&lt;/p&gt;</description></item><item><title>Troubleshoot IIS hangs</title><link>https://blog.wapnet.nl/2015/11/troubleshoot-iis-hangs/</link><pubDate>Wed, 04 Nov 2015 14:22:08 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=1665</guid><description>&lt;p&gt;I&amp;rsquo;ve created a batch file which find out what was hanging my .NET application.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;:loop
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;CLS
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;time /t &amp;gt;&amp;gt;crappy_site_log.txt
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;%windir%\system32\inetsrv\appcmd list requests /elapsed:5000 &amp;gt;&amp;gt;crappy_site_log.txt
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ping -n 4 127.0.0.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;GOTO loop
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command logs every request above the 5 seconds.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.wapnet.nl/wp-content/uploads/2015/11/IIS-debug.png"&gt;&lt;img alt="IIS-debug" loading="lazy" src="https://blog.wapnet.nl/wp-content/uploads/2015/11/IIS-debug.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This idea came from: &lt;a href="https://www.leansentry.com/Guide/IIS-AspNet-Hangs"&gt;https://www.leansentry.com/Guide/IIS-AspNet-Hangs&lt;/a&gt;&lt;/p&gt;</description></item><item><title>IIS 7 and 7.5 rotate all logging</title><link>https://blog.wapnet.nl/2013/09/iis-7-and-7-5-rotate-all-logging/</link><pubDate>Fri, 06 Sep 2013 08:13:37 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=1313</guid><description>&lt;ul&gt;
&lt;li&gt;start powershell&lt;/li&gt;
&lt;li&gt;set-executionpolicy remotesigned&lt;/li&gt;
&lt;li&gt;Create a script with notepad&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;get-childitem -Path C:\inetpub\logs\LogFiles -recurse |
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;where-object {$_.lastwritetime -lt (get-date).addDays(-90)} |
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Foreach-Object { del $_.FullName }
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Save the script @ c:\scripts\del_old_logs.ps1&lt;/li&gt;
&lt;li&gt;start cmd&lt;/li&gt;
&lt;li&gt;run: powershell.exe c:\scripts\del_old_logs.ps1  -noprofile -Noninteractive&lt;/li&gt;
&lt;li&gt;If you get a &amp;ldquo;child&amp;rdquo; question press A&lt;/li&gt;
&lt;li&gt;Start task scheduler&lt;/li&gt;
&lt;li&gt;Schedule the task&lt;/li&gt;
&lt;li&gt;program powershell&lt;/li&gt;
&lt;li&gt;c:\scripts\del_old_logs.ps1  -noprofile -Noninteractive&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://blog.wapnet.nl/wp-content/uploads/2013/09/Sheduled-Task.png"&gt;&lt;img alt="Sheduled Task" loading="lazy" src="https://blog.wapnet.nl/wp-content/uploads/2013/09/Sheduled-Task.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run the task wheter user is logged on or not&lt;/li&gt;
&lt;li&gt;Highest privileges &lt;strong&gt;not needed&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Install Thawte SSL Webserver or Wildcard (the Quick way)</title><link>https://blog.wapnet.nl/2010/12/install-thawte-ssl-webserver-or-wildcard-the-quick-way/</link><pubDate>Thu, 16 Dec 2010 14:41:07 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=494</guid><description>&lt;p&gt;After you successfully installed a web or wildcard SSL certificate you must follow some extra steps.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First &lt;a href="https://blog.wapnet.nl/wp-content/uploads/2010/12/ThawteSSLCA.zip"&gt;download this zip&lt;/a&gt; with 2 SSL certificates&lt;/li&gt;
&lt;li&gt;Extract the zip e.g. C:\install\ssl&lt;/li&gt;
&lt;li&gt;Start &amp;gt; run &amp;gt; mmc &amp;gt; file&amp;gt; add/remove snap in &amp;gt; certificates &amp;gt; local computer &amp;gt;computer account &amp;gt; Intermediate Certification Authorities &amp;gt; right click certificates &amp;gt; import&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then disable the old certificate&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Expand Trusted Root Certification Authorities &amp;gt; certificates&lt;/li&gt;
&lt;li&gt;Locate this certificate:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Common Name – thawte Primary Root CA
Expiry Date – 17th July 2036
Thumbprint – 91 c6 d6 ee 3e 8a c8 63 84 e5 48 c2 99 29 5c 75 6c 81 7b 81&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>A revocation check could not be performed for the certificate</title><link>https://blog.wapnet.nl/2010/11/a-revocation-check-could-not-be-performed-for-the-certificate/</link><pubDate>Mon, 15 Nov 2010 20:23:10 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=450</guid><description>&lt;p&gt;&lt;em&gt;If this article helps you please consider a donation. I don&amp;rsquo;t like adds on my blog.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;When you get the RDP error &amp;ldquo;a revocation check could not be performed for the certificate&amp;rdquo; on a windows 7 workstation after you installed an SSL from a certification, you must disable enablecredsspsupport support. You can do this in the RDP file you are using. Open the *.rdp file in notepad and add the following line:&lt;/p&gt;</description></item><item><title>WSS / Sharepoint Cannot access site from local server</title><link>https://blog.wapnet.nl/2010/08/wss-sharepoint-cannot-access-site-from-local-server/</link><pubDate>Wed, 18 Aug 2010 09:25:28 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=390</guid><description>&lt;p&gt;You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version&lt;/p&gt;
&lt;p&gt;Solution : &lt;a href="http://support.microsoft.com/kb/896861"&gt;http://support.microsoft.com/kb/896861&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="method-1-specify-host-names-preferred-method-if-ntlm-authentication-is-desired"&gt;Method 1: Specify host names (Preferred method if NTLM authentication is desired)&lt;/h3&gt;
&lt;p&gt;To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/281308"&gt;281308&lt;/a&gt; Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Start&lt;/strong&gt;, click &lt;strong&gt;Run&lt;/strong&gt;, type regedit, and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In Registry Editor, locate and then click the following registry key:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right-click &lt;strong&gt;MSV1_0&lt;/strong&gt;, point to &lt;strong&gt;New&lt;/strong&gt;, and then click &lt;strong&gt;Multi-String Value&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type BackConnectionHostNames, and then press ENTER.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right-click &lt;strong&gt;BackConnectionHostNames&lt;/strong&gt;, and then click &lt;strong&gt;Modify&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;strong&gt;Value data&lt;/strong&gt; box, type the host name or the host names for the sites that are on the local computer, and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Quit Registry Editor, and then restart the IISAdmin service.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Restore IIS from backup</title><link>https://blog.wapnet.nl/2009/03/restore-iis-from-backup/</link><pubDate>Wed, 11 Mar 2009 07:31:17 +0000</pubDate><guid isPermaLink="false">https://blog.wapnet.nl/?p=175</guid><description>&lt;ul&gt;
&lt;li&gt;Give a IISRESET /STOP&lt;/li&gt;
&lt;li&gt;Browse to C:\Windows\System32\Inetsrv\&lt;/li&gt;
&lt;li&gt;Rename the Histroy folder to History.old&lt;/li&gt;
&lt;li&gt;Rename the metabase.xml to metabase.xml.old&lt;/li&gt;
&lt;li&gt;Rename the mbschema.xml to mbschema.xml.old&lt;/li&gt;
&lt;li&gt;Place the following files from the backup: metabase.xml, mbschema.xml &amp;amp; Histrory to the C:\Windows\System32\Inetsrv\ folder&lt;/li&gt;
&lt;li&gt;Giva a IISRESET /START&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>