Setting MIME types using the ASP.NET Development Server
The built-in development web server in Visual Studio (Cassini) has no knowledge of <system.webServer>, only IIS7.x or IIS7.5 Express will consume these settings. Also the static file content types in Visual Studio’s development web server are hard coded. From Microsoft.VisualStudio.WebHost.Connection (disassembled using .NET Reflector): private static string MakeContentTypeHeader(string fileName) { string str = null; FileInfo … Read more