Solved

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

Posted on 2012-04-02
2
813 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 79

Accepted Solution

by:
David Johnson, CD, MVP earned 155 total points
ID: 37799623
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
ID: 37825975
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
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…

770 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