I am trying to verify my website to Google (Apps and Webmasters), and one such method for doing this is to upload an HTML file containing plain text (specific name and specific text). This worked fine under IIS 7 / .NET 2.0/3.0/3.5. I have now switched over to .NET 4, and it seems that ASP.NET is playing silly buggers with me.
When I browse the .html files (containing plain text), I get a null response (no text). If I add <html> headers to the file, I then get the correct response (with headers), appended with a SafeMail script (appended by ASP.NET).
Is there a way to modify web.config to get ASP.NET to ignore .html files?