[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2012-04-02
2
Medium Priority
?
829 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 83

Accepted Solution

by:
David Johnson, CD, MVP earned 465 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

656 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