How to map .html to asp.dll (IIS7 & IIS 7.5)

There is some bug on IIS 7.5 where the setting on IIS handler mapping not able to function well when it need to edit the existing hander to  use other executable module.  It not a known bug but it do happen based on my testing.


But we can try do the setting on backend.

CAUTION: Make Sure you have backup all the copy of the file that you edit.

1) go into the C:\Windows\System32\inetsrv\config directory and edit the fileapplicationHost.config (you will need to do this in administrator mode, or do it from a different computer networking over to that server, otherwise Windows will protect that file and won’t allow you to change it.)

2) Scroll all the way to the bottom and look for the section that corresponds to your web site <location path=”Your Web Site”>

3) Change/edit the code block to add in the HANDLERS and HTM map below

<location path="Your Web Site"> 
<asp appAllowClientDebug="true" scriptErrorSentToBrowser="true" /> 
<add name="htm" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" /> 

4) Save it and restart IIS. Bingo.

CDO.Message.1 error ‘80070005’

When there is error as below when your web application try to send email out

CDO.Message.1 error ‘80070005’

Access is denied.

You might need to ensure the mail sending path have the “Everyone”, “Network Service” and “Users” permission and grant to all the subfolder on it.

Install the Intermediate Certificate (IIS6 & IIS7)

(1) Click the Start menu and click Run…. Type mmc in the Run window and click OK to start the Microsoft Management Console (MMC).

(2) In the Management Console, select File then Add/Remove Snap In.

(3) In the Add or Remove Snap-ins dialog, click the Add button and then select Certificates.

(4) Choose Computer Account then click Next.

(5) Choose Local Computer, then click Finish.

(6) Close the Add or Remove Snap-ins dialog and click OK to return to the main MMC window.
If necessary, click the + icon to expand the Certificates folder so that the Intermediate Certification Authorities folder is visible.

(7) Right-click on Intermediate Certification Authorities and choose All Tasks, then click Import.

(8) Follow the wizard prompts to complete the installation procedure.

(9) Click Browse to locate the certificate file. Change the file extension filter in the bottom right corner to be able to select the file. Click Open after selecting the appropriate file.

(10) Click Next in the Certificate Import Wizard.

(11) Choose Place all certificates in the following store; then use the Browse function to locate Intermediate Certification Authorities. Click Next. Click Finish.


Joomla – Enabling Search Engine Friendly (SEF) URLs on IIS

(1) Add rules as below in isapi

RewriteEngine On
RewriteCond %{REQUEST_URI} (/[^.]*|\.(html?|php))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php

(2) add link as below in index.php

if (isset($_SERVER[‘HTTP_X_REWRITE_URL’]))

Bingo 🙂