Solved

Making .htm/.html files parse as .asp files

Posted on 2012-04-02
2
805 Views
Last Modified: 2012-06-27
I am running windows 2008. and have set up IIS 7.5 on the server, with all of the settings to make asp run under 7.5. I have a site where it parses .htm as .asp files, and it is a local setting in my web.config.

However, I will at some point have a lot more sites than this on my server, and really dont want to go into each and everyone of these sites. To add in setting to parse .htm as .asp.

So I did a search to see if there is a way to make this work, and came across this link.

http://www.amixa.com/blog/2011/03/31/iis-7-and-iis-7-5-script-map-htm-to-asp-dll/

And I have tried doing this, and either I am doing this wrong, or I am missing some setting somewhere that makes all of this work.

I just want .htm to be parse as .asp without having to do it site by site basis. So any help on this would be appreciated.

This is the setting that I have in my web.config file that does parse everything correctly.

      <handlers>
                        <add name="ASPClassicforHTM" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="C:\windows\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" preCondition="bitness64" />
                        <add name="HTM-TO-ASP" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="C:\windows\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" />
                        </handlers>

And it resides in the system.WebServer section of the web.config.
0
Comment
Question by:JDEE8297
2 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 155 total points
Comment Utility
I just want .htm to be parse as .asp without having to do it site by site basis. So any help on this would be appreciated.

Instead of the individual site web.config change it in the C:\WINDOWS\System32\inetsrv\config\applicationHost.config it should now be global for all new sites

you will have to restart the iis server
0
 

Author Comment

by:JDEE8297
Comment Utility
I will give this a try tomorrow and see what comes of it, I didn't think to restart the server, I thought just restarting IIs is all I would have to do.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
A procedure for exporting installed hotfix details of remote computers using powershell
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now