I created an application inside IIS 7.5 and inside that application a virtual directory is created. I have kept a flash video file in that to play locally (via browser).
It works fine in IIS 5.0 (on a xp). However, on IIS 7.5, it does not run, the video gets stuck in the beginning.
The video works fine when I double click on the html file from the windows explorer.
Any ideas what settings I should change or how to debug this? Event viewer does not show anything. I gave full permission to the video folder.
OS is windows server 2008 R2
Thanks
You need to make sure that IIS 7.5 is setup to serve the MIME types for the .swf and .flv extensions, as well as anything else that needs to be served, even for static content. Otherwise IIS will 404 because it doesn't know how to serve them. In your website, select MIME Types and add one for .swf as application/x-shockwave-flash
and .flv as video/x-flv
.
EDIT: You may need to add one for .mp4, which is video/mp4
. IIS 7.5 should have ones for .flv and .swf already, but .mp4 is a common case where it does not.
For Clear understanding of others.
Let me put it step by step
1)Choose the website to configure in IIS
2)Right click Choose Properties
3)Choose HTTP Headers Tab
4)Choose File Types under the MIME Map section
5)Choose New Type type .flv as the extension and video/x-flv or flv-application/octet-stream as the mime type and choose OK.
if still no change then restart iis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With