iis 7 - Publishing MVC site with Visual Studio to IIS 7 removes custom response headers from IIS config -
i'm using iis 7 , i've got site setup additional http response header (x-ua-compatible
header).
i'm deploying mvc4 project remotely iis using publish feature in visual studio 2010, uses web deploy.
problem is, every time publish site, http response header gets removed config in iis - there way can prevent this?
i figured out - when set headers @ site level in iis 7, alters web.config file. needed add customheaders
element in web.config file deployed:
<system.webserver> ... <httpprotocol> <customheaders> <add name="x-ua-compatible" value="ie=edge" /> </customheaders> </httpprotocol> ... </system.webserver>
Comments
Post a Comment