iis 7 - MIME Type not working when added with appcmd -


when add mime type iis 7 via following code appcmd, shows in list doesn't work.

appcmd set config /section:staticcontent /+"[fileextension='.mp4 ',mimetype='video/mp4']"

if add via iis gui works expected. however, need script server deployment need know how make work appcmd.

try

appcmd.exe set config "default web site" -section:system.webserver/staticcontent /+"[fileextension='mp4',mimetype='video/mp4']" 

Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -