How to configure IIS Express for mp4 videos


I have written an application using C# ASP.Net MVC which in its Home View lists all folders of a Directory in a table. Each tr has a single td and td contains a. Clicking on a (folder name) replaces a div of Home View with a partial view which in turn lists all mp4 videos along with duration of that folder in similar way and I have used jQuery AJAX for such replacement. By clicking on VideoName video gets played and I have used video tag and specified type="video/mp4".

I have added a Website in IIS Server where hostname is, physical path is App path and in binding I have used : 80. In DNS Server I have created a Primary Zone named and in a record used the same IP. I can watch video tutorials from any PC of my local network without any issue.

If I open the application in Visual Studio and press F5 or Ctrl+F5 it starts using IIS Express and when I click on Videoname some videos are rendered properly and some do not. How to configure IIS Express to solve the problem?

Add Following XML Code in the WebConfig.xml file.

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

The Above Lines allow the MIME Types.