끝점 동작으로 추가하려는 사용자 지정 동작 확장 프로그램에서이 오류가 발생했습니다. 따라서 Visual Studio 2017에서 사용 된 스키마를 편집하여 web.config 파일에서 경고를 제거했습니다.받은 경고와 동일합니다.
'behavior'요소에 잘못된 'CustomSecurity'하위 요소가 있습니다. 예상되는 요소 목록 : 'clientVia, callbackDebug, callbackTimeouts, clear, clientCredentials, transactedBatching, dataContractSerializer, dispatcherSynchronization, remove, synchronousReceive, webHttp, enableWebScript, endpointDiscovery, soapProcessing'.
내 Web.config의가 있습니다
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="CustomSecurity"
type="FullyQualifiedPath.MyCustomBehaviorExtension, MyAssemblyName"/>
</behaviorExtensions>
</extensions>
<endpointBehaviors>
<behavior name="CustomServiceBehavior">
<CustomSecurity />
</behavior>
</endpointBehaviors>
<endpoint address="https://SomeServer/MyService.svc/soap"
behaviorConfiguration="CustomServiceBehavior" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IProject" contract="ProjectService.IProject"
name="BasicHttpBinding_IProject" />
CustomSecurity의 XML 노드는 항상 Visual Studio에서 그 아래 파란색 구불 구불 한 선을했다. 오류 목록 창에 경고로 나타납니다. 나는 Service Reference를 업데이트하려고 할 때마다 web.config의 경고 때문에 실패 할 것이기 때문에 제거하고 싶었다.
따라서 수정하려면 Visual Studio에서 요소 유효성을 검사하는 데 사용하는 스키마를 편집해야합니다.. 그래서 web.config 파일을 열고 기본 Visual Studio 메뉴 모음에서 XML을 선택했습니다. 그런 다음 스키마를 선택하십시오. 스키마 목록이 길어집니다. 아래 "DotNetConfig.xsd"를 찾으십시오. 
표시된 경로를 찾아보고 xsd 파일을 편집하십시오. 검색 대상 : <xs:element name="behavior" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors/behavior">
그런 다음 xs : choice 노드에 사용자 정의 비헤이비어 확장명과 함께 새 xs : 요소 노드를 추가하십시오. 제 경우에는 CustomSecurity. 파일을 저장하면 Visual Studio에서 자동으로 새 스키마의 유효성을 검사해야하므로 더 이상 web.config에 경고가 표시되지 않습니다.
<xs:element name="behavior" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors/behavior">
<xs:complexType>
<xs:annotation>
<xs:documentation>The behavior element contains a collection of settings for the behavior of an endpoint.</xs:documentation>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="CustomSecurity" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors/behavior/CustomSecurity">
<xs:complexType>
<xs:annotation>
<xs:documentation>Specifies the behavior extension class applied to the endpoint.</xs:documentation>
</xs:annotation>
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict" />
</xs:complexType>
</xs:element>
<xs:element name="clientVia" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors/behavior/clientVia">
<xs:complexType>
<xs:annotation>
<xs:documentation>Specifies the URI for which the transport channel should be created.</xs:documentation>
</xs:annotation>
<xs:attribute name="viaUri" type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>A string that specifies a URI that indicates the route a message should take.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="lockAttributes" type="xs:string" use="optional" />
<xs:attribute name="lockAllAttributesExcept" type="xs:string" use="optional" />
<xs:attribute name="lockElements" type="xs:string" use="optional" />
<xs:attribute name="lockAllElementsExcept" type="xs:string" use="optional" />
<xs:attribute name="lockItem" type="boolean_Type" use="optional" />
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict" />
</xs:complexType>
</xs:element>
http://connect.microsoft.com/VisualStudio/feedback/details/619106/wcf-fails-to-find-custom-behaviorextensionelement-if-type-attribute-doesnt-match-exactly – nologo
가능한 중복 [청각 "요소 '동작'잘못된 '자식 요소가 있습니다"는 무시해야하지만 서비스 참조를 업데이트 할 수 없습니다] (http://stackoverflow.com/questions/9482091/hearing-element-behavior-has-invalid- 자식 요소가 있어야하지만 무시해야 함) – McGarnagle