?
Solved

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

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

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

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