I have the following web.config element:
<behaviors>
<serviceBehaviors>
<behavior name="NameOfThisBehavior">
<ServiceErrorHandler/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceMetadata httpGetEnabled="true"/>
<serviceAuthorization serviceAuthorizationManagerType="Blablabla"/>
</behavior>
</serviceBehaviors>
</behaviors>
I need to set serviceDebug includeExceptionDetailInFaults and serviceMetadata httpGetEnabled to false in my config transform. I think removing it would work as well as I assume that default value is false.
This is what I'm doing now that isn't working:
<behaviors>
<serviceBehaviors>
<behavior name="NameOfThisBehavior" xdt:Locator="Match(name)" >
<serviceMetadata httpGetEnabled="false" xdt:Transform="SetAttributes(httpGetEnabled)" />
<serviceDebug includeExceptionDetailInFaults="false" xdt:Transform="SetAttributes(includeExceptionDetailInFaults)"/>
</behavior>
</serviceBehaviors>
</behaviors>
Can someone please provide some insight as to what I'm missing?