<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Known Issues and Workarounds</title><link>http://forums.iis.net/1067.aspx</link><description>Known issues and workarounds found with IIS7 in the Vista Beta 2 release.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1925449.aspx</link><pubDate>Thu, 19 Nov 2009 19:31:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925449</guid><dc:creator>CarlosAg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925449.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1925449</wfw:commentRss><description>&lt;p&gt;A couple of comments before posting the solution, I would consider using instead &lt;a href="http://www.iis.net/extensions/URLRewrite"&gt;URL Rewrite&lt;/a&gt; for this, that way you can continue to name your pages .ASPX physically and just rewrite the URLs from HTML to be ASPX, this way editors, etc, just work as expected.&lt;/p&gt;
&lt;p&gt;Now, to map a different extension I wrote a blog on how to do it, but I figure I would post the entire solution here while explaining the different pieces.&lt;/p&gt;
&lt;p&gt;1) The solution depends if your apppool is running Integrated mode or classic. For integrated you do it by adding a handler in the system.webServer/handlers section, for classic you need to add the same aspnet_isapifilter as before but also need to add in system.web/httpHandlers. With both you need to add a compilation build provider so that asp.net understands them. So here it is the web.config that you can drop in the same directory as your application to make it work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class="code"&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;?xml&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;version&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;1.0&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;encoding&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;configuration&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;system.webServer&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;handlers&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;add&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;name&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;ASPX-HTML-Integrated&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;path&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;*.htm&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;verb&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;GET,HEAD,POST,DEBUG&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;type&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;System.Web.UI.PageHandlerFactory&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;preCondition&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;integratedMode&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;add&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;name&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;ASPX-HTML-2.0-Classic-32bit&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;path&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;*.htm&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;verb&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;GET,HEAD,POST,DEBUG&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;modules&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;IsapiModule&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;scriptProcessor&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;preCondition&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;classicMode,runtimeVersionv2.0,bitness32&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;responseBufferLimit&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;0&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;handlers&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;system.webServer&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;system.web&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;compilation&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;buildProviders&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;add&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;extension&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;.htm&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;type&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;System.Web.Compilation.PageBuildProvider&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;buildProviders&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;compilation&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;httpHandlers&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;&lt;/font&gt;&lt;font color="maroon"&gt;add&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;path&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;*.htm&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;type&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;System.Web.UI.PageHandlerFactory&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;verb&lt;/font&gt;&lt;font color="blue"&gt;=&amp;quot;*&amp;quot;&lt;/font&gt;&lt;font color="red"&gt;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;httpHandlers&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;system.web&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="blue"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="maroon"&gt;configuration&lt;/font&gt;&lt;font color="blue"&gt;&amp;gt;&lt;/font&gt;&lt;font color="black"&gt;&lt;/font&gt; &lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;finally here is the blog that explains more about it and shows command line tool to enable this:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/carlosag/archive/2008/07/04/MappingFileExtensionForAspxPagesInIIS70.aspx"&gt;http://blogs.msdn.com/carlosag/archive/2008/07/04/MappingFileExtensionForAspxPagesInIIS70.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1925338.aspx</link><pubDate>Thu, 19 Nov 2009 01:26:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925338</guid><dc:creator>varmar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1925338.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1925338</wfw:commentRss><description>&lt;p&gt;Hi soodharsh75. did you get the solution for this issue. if yes, please post it. thanks.&lt;/p&gt;</description></item><item><title>Re: Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1907100.aspx</link><pubDate>Mon, 15 Jun 2009 21:50:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907100</guid><dc:creator>singhsatyadev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907100.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1907100</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;if you execute this code as a ASPX you will see only&lt;/p&gt;&lt;p&gt;comming soon..&lt;br /&gt;&amp;nbsp;HTML to ASPX&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;on client side .. and if the page is executed as HTML .. will see&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt; &amp;nbsp;&lt;/p&gt;&lt;p&gt;comming soon..&lt;br /&gt;
&amp;nbsp;HTML to ASPX&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;** This is just a test page for testing.. nothing to do with our main apps.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Satyadev&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1907099.aspx</link><pubDate>Mon, 15 Jun 2009 21:46:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907099</guid><dc:creator>singhsatyadev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907099.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1907099</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi Jeff,&lt;/p&gt;&lt;p&gt;We are doing some kind of url rewriting here.. the content of the HTML page is being rendered&amp;nbsp; with a ASPX page on the fly using the url rewriting, our one of the old server is running on IIS 6 and the new server we have IIS 7.0.&lt;/p&gt;&lt;p&gt;&amp;nbsp;also because of our URLs are&amp;nbsp; already listed in most of the Search Engines with good PR, so&amp;nbsp; we can not change it.. although IIS 7.0 have a very good url Rewritter extension.&lt;/p&gt;&lt;p&gt;so we are using our custom url rewritter module.&lt;/p&gt;&lt;p&gt;this is the only reason we want to execute our .html pages as ASPX.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Satyadev Singh&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1907074.aspx</link><pubDate>Mon, 15 Jun 2009 17:11:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907074</guid><dc:creator>jeff@zina.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907074.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1907074</wfw:commentRss><description>&lt;p&gt;First, why are you running HTML files as ASP.NET (I assume by changing the extension ro using wildcard extension mapping)?&amp;nbsp; In IIS7&amp;#39;s Integrated Pipeline, every file runs throiugh the ASP.NET pipeline, regardless of it being HTML or ASP.NET or even a JPG.&amp;nbsp; This pretty much eliminates any valid reason to run plain HTML with an ASP.NET extension or use wild card mapping of extensions.&lt;/p&gt;
&lt;p&gt;Second, what effect does the @Page directive have on your page?&amp;nbsp; You should see no difference.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Run HTML pages as &gt;net in IIS 7.0</title><link>http://forums.iis.net/thread/1906809.aspx</link><pubDate>Fri, 12 Jun 2009 19:29:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906809</guid><dc:creator>soodharsh75</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906809.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1906809</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi &lt;br /&gt;&lt;br /&gt;We are running some HTML files as ASP.net file&amp;nbsp; with aspnet_Isapi handler in IIS 7.0 in windows 2008. These files are loading, but are loading the .Net script on the top &lt;br /&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here is the sample file in .html file &lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &amp;gt;&lt;br /&gt;&amp;lt;head runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Test&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&amp;quot;form1&amp;quot; runat=&amp;quot;server&amp;quot; method=&amp;quot;Post&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;comming soon..&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;HTML to ASPX&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please let us know how we can run HTML files as ASP.Net files.( We tried both Classic and Integrated mode). The pages are served well in IIS 6, but its not working on IIS 7.0&lt;br /&gt;&lt;br /&gt;Thanks for your help.&lt;br /&gt;&lt;br /&gt;Harsh.&lt;/p&gt;</description></item></channel></rss>