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
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
I have added a Website in IIS Server where hostname is tutorials.com, physical path is App path and in binding I have used 192.168.1.3 : 80. In DNS Server I have created a Primary Zone named tutorials.com 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
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.
<system.webServer> <staticContent> <mimeMap fileExtension=".mp4" mimeType="video/mp4" /> <mimeMap fileExtension=".webm" mimeType="video/webm" /> <mimeMap fileExtension=".ogv" mimeType="video/ogv" /> </staticContent> </system.webServer>
The Above Lines allow the MIME Types.