Home
TeamSite
IIS 6 serving HTML code during preview
abhijeet1
While previewing a html page, I get html code instead of the page. But if I browse the content from IIS console, it renders correctly. Anyone seen this before. The MIME types are set properly...
abhijeet
Find more posts tagged with
Comments
Migrateduser
Let's take a step back, though. What is the file extension of the page that's being served? Assuming it's anything other than a standard HTML or common extension for a script, where exactly have you added this mime type?
Dave
abhijeet1
Page is called index.html, with standard html inside. I did not add the MIME type, rather checked in the properties page in IIS console. If you right click the machine name in the IIS console where your website lives, you will see a MIME type setting. It lists all the common MIME types set by default by IIS. I just verified that the .html file type is set and has a MIME type of text/html.
abhijeet