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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -