IIS Directory listing doesn't reconize .mkv files

15,172

Solution 1

have you added the mkv mime type for your IIS server?

Adding Mime Type Walk through

use mkv and "video/x-matroska" where the example uses FLV and the flv mime type.

Solution 2

IIS doesn't like to serve files with extensions it doesn't know the MIME type for. This keeps someone from, say, getting web.config files (and thus, often, SQL server login info and such) from some site that wasn't extra careful about setting up permissions.

Share:
15,172
Jan Johansen
Author by

Jan Johansen

Updated on July 12, 2022

Comments

  • Jan Johansen
    Jan Johansen almost 2 years

    I use the directory listing function in IIS to upload a bunch of files for friends and family to easy access and download.

    My problem is that .mkv files it lists but when you click it i get a 'The page cannot be found'.

    Ive tried relocating the file and renaming it but i get the same error each time. Why does it do this? Its only my .mkv files everything else works perfectly.

    Thanks in advance.