Why Server says - 404 - File or directory not found. while file exist?

Benyamin Jane picture Benyamin Jane · Jul 9, 2014 · Viewed 19k times · Source

I want to play an mp4 file using flowplayer and ASP.NET. my video file placed at location :

http://domain.com/website/files/dd/dd21f5c6-8721-4f12-81a7-0afb9d7d7bfa.mp4

but my flow player don't play the file.

when i type this address in address bar i got following error :

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

The file exist in the path specified.

can anyone help me about this issue?

Thanks

Answer

Michiel picture Michiel · Jul 9, 2014

There is a good chance your webserver is not configured to serve mp4 files. You can add the mime type to your server.

Here you can read how to do this in windows IIS 7 http://technet.microsoft.com/nl-nl/library/cc753281(v=ws.10).aspx

addition, a better link maybe: http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx