I have a web page that builds some xml and sends it to the requester. Right now this page is called xmlData.aspx and it works perfectly.
Now i would like this file to have a .xml extension so i placed it in a sub directory, renamed it to have a .xml extension, made that directory an application in iis and set the application mapping for .xml files to be the same as .aspx files (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll for .xml, verbs GET,HEAD,POST,DEBUG), and restarted IIS. Apparently this was not enough to make it do what i wanted because when i hit myPage.xml it sends back simply
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="myPage.aspx.cs" Inherits="myPage" %>
which is the entirity of myPage.xml, not interpreted by aspnet_isapi.dll as the .aspx version was.
What am i doing wrong?