我正在尝试删除Web.Release.config文件中的所有服务端点mexHttpBinding节点.我找到了这个答案 :(
我从我的代码文件中复制了,所以它实际上的格式与答案不同)
<services>
<service>
<endpoint binding="mexHttpBinding"
xdt:Locator="Match(binding)"
xdt:Transform="RemoveAll" />
</service>
</services>
Run Code Online (Sandbox Code Playgroud)
我收到
的警告是在<service>节点上:
缺少必需的属性"名称".
我是否需要在节点的属性中添加空字符串或通配符(如果有)以解决此警告?
此外,上述转换不应该包含在节点中,还是不包含?name<service><system.serviceModel>
asp.net web-config-transform xml-document-transform web-release-config web-debug-config
我定义了一个 WebApi,它从浏览器获取凭据,它可以工作。部署后,我必须将服务器上的身份验证从 编辑Anonymouns为Windows。我尝试添加<authentication mode="Windows"/>到 Web.Config.Release 但它没有改变...为什么?建议?