Serve a file in IIS which has no extension

We need to add following config setting in web.config file in order to serve a file using IIS which has no extension.

<configuration>
  <system.webServer>
	<staticContent>
        <mimeMap fileExtension="." mimeType="text/plain" />
    </staticContent>
  </system.webServer>
</configuration>

Leave A Comment

Your email address will not be published.