homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Allowing mp4 downloads from Windows server
Error 404 when file is on server

 11:09 am on May 25, 2010 (gmt 0)

I have a mp4 file which I would like page visitors to be able to download.

To do this the following code;

<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/videos/stopMotion.mp4">1.8MB Quick Time file</asp:HyperLink>

results in the follwing html

<a id="ctl00_ContentPlaceHolder1_HyperLink2" href="videos/stopMotion.mp4">1.8MB Quick Time file</a>

Clicking the link results in a 404 error.

I do not get the same problem for a .wmv file - so I suspect this is a Windows IIS configuration matter. What should I ask my web host to do?



 3:04 pm on May 25, 2010 (gmt 0)

Solved by amending web.config file

<mimeMap fileExtension=".mp4" mimeType="video/mp4" />

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved