IIS returns 404 not found for .mp4 files

asp.net, html, iis-7.5

Solution

Check if you have IIS MIME Type for mp4 added for hosted site (or for the directory where you have your video files).

For the Win Server 2012 is is already there but for Win Server 2008 it is not included by default.

So, if you developed/tested on WinSer2012 and then deployed on WinSer2008 then you can have this issue.

The mp4 MIME settings are: File name extension: .mp4 MIME type: video/mp4

Problem

I used hmtl video tag to play video . In my localhost video plays but when I published . It is not played.I have created project based on in ASP.NET. I locally use like this method. ``` http://localhost:41563/files/Just.mp4 ``` and When I published the url give me an error like this: ``` http://111.111.22.22:41563/files/Just.mp4 ``` 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. How can I solve this.

Original source