Solved

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

Posted on 2012-04-02
2
826 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 81

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
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…

728 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