Microsoft.NET on Microsoft Windows 10.

Russell Willis 1 Reputation point
2021-02-15T20:30:30.817+00:00

The following commands were suggested for repairing damage to IIS 10, caused by typing in "ServiceModelReg -i" at the Microsoft Windows 10 ( Home ) Edition command prompt ( in elevated mode ):

  • cd\Windows\Microsoft.NET\Framework64\v4.0.30319
  • aspnet_regiis.exe -iru
  • iisreset

After receiving an error message following the second command given above, I navigated to "Turn Windows Features On/Off," selected .NET Framework 4.8, and checked everything associated with it ( this was done after typing in the third command given above ). IIS 10 now serves up my web pages again, except that my web page with ".mp4" video files shows them with the ".wmv" filetype when I hover the mouse over their hyperlinks ( the video files will not play ). Why is this happening?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,256 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,736 Reputation points
    2021-02-16T02:21:05.607+00:00

    Hi @Russell Willis ,

    In reality, “MP4” is just container formats. Just like a ZIP file can contain any sort of file within it, video container formats only define how to store things within them, not what kinds of data are stored.

    You need add MIME type in IIS. Make sure that .mp4 and .flv have been add in IIS.
    68444-2021-02-16-101227.jpg
    68335-2021-02-16-101253.jpg
    Then restart IIS and World Wide Web Publishing Service. Try to access the mp4 file through URL directly such as http://xxx/video1.mp4, not put it in HTML tag.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    0 comments No comments

  2. Russell Willis 1 Reputation point
    2021-02-16T12:20:59.183+00:00

    BruceZhang-MSFT, there is something weird going on with Internet Information Services ( 10 ) Manager 10 ( IIS 10 ). Last night, when I served up my web page with ".mp4" video files, and hovered my mouse pointer over various hyperlinks, the wrong Uniform Resource Locator ( URL ) was displayed, and some of the video files were shown with the wrong file type ( i.e., ".wmv" ). This morning, I served up the same web file in IIS 10, but now the correct url is displayed when I hover my mouse pointer over various video files, and they have the correct file type ( i.e., ".mp4" ), but when I click on a hyperlink, I am still getting the "404-File or Directory Not Found" error message. The video files are in the correct directory. Also, when I edit a hyperlink in the above-mentioned web page, and attempt to save the changes to my web file in Microsoft Word version 2007, I receive an error message that the web file is set to read only. However, when I right click on the web page, and click on the "Properties" menu item, the web page is not set to read only. Also, I already have the correct MIME types set in IIS 10 ( i.e., ".flv video/x-flv inherited" and ".mp4 video/mp4 inherited" ). Why is this happening?

    0 comments No comments

  3. Russell Willis 1 Reputation point
    2021-02-16T14:26:59.553+00:00

    BruceZhang-MSFT, the problem with IIS 10 has been solved. After configuring the web page with ".mp4" video files to use secure http ( i.e., https ), that web page is serving up and the video files are now working. However, I do not understand why the video files are working with the https protocol ( as opposed to http ). Thank you for your help.

    0 comments No comments

  4. Bruce Zhang-MSFT 3,736 Reputation points
    2021-02-17T02:20:29.567+00:00

    Hi @Russell Willis ,

    Did you set https in sites binding and how do you play video in web page? I think it may work well if you access video file through URL directly. However, if you use some video play tools or script in web page, some unknow issues may happen. So if you don't mind, could you tell me how do you set and play video in web page?

    When you have resources servered over http on a https site, certain special elements will be intercepted by the https protocol to prevent attackers from injecting insecure content. For example script, Object like flash and other. They will be intercepted or changed.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    0 comments No comments