IIS7 / appcmd – 导入httpErrorconfiguration出错
为了尽量避免为我们的应用程序configurationIIS,我一直在寻找appcmd。 具体来说,这是能够导出configuration树,并重新应用他们最小的麻烦。 一般来说,这给出了导出的configuration: appcmd list Config /section:httpProtocol /config /xml > template.xml 然后我可以在以后重新导入: appcmd set Config /in < template.xml 并且更改得到应用。 这适用于除自定义错误页面以外的其他所有内容。 我已经导出这些: appcmd list Config "Default Web Site/intranet" /section:httpErrors /config /xml > customerrors.xml 但是当我尝试导入: appcmd set Config /in < customerrors.xml 我得到以下错误: ERROR ( hresult:8007000d, message:The input contained an error element, which may indicate that the operation […]