I want to open file video but it not working
<I\'m tried enabled directory browsing.
Tried run aspnet_regiis.exe -i
Hi i know is a old post but i hope that it can help you
1.- First create a folder into C:\inetpub\wwwroot example : resources
2.- Open IIS or windows + R and write inetmgr
3.- You'll see the folder you just created
4.- select the folder for this example "resources" and you'll see on the right all option to config
select and open "directory browsing" there's an option to change disabled/enable put it on enable and save changes
5.- Open browser and type the ip or url of your site and you'll see the files
6.- if you can't open the file check if the MIME Types and add the format of the resource.
This changes will be on Resources Folder or in the folder that you're working.
According to your description, I suggest you could add below config to set the MP4 mime map setting for your IIS web application.
<?xml version="1.0"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4a" mimeType="video/mp4" />
</staticContent>
</system.webServer>
</configuration>
More details, you could refer to below article: https://blogs.iis.net/bills/how-to-add-mime-types-with-iis7-web-config