作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<endpointBehaviors>
<behavior name="singleFileEndpointBehavior">
<wsdlExtensions singleFile="True" />
</behavior>
</endpointBehaviors>
The element 'behavior' has invalid child element 'wsdlExtensions' ...
最佳答案
为行为扩展元素定义架构 wsdlExtensions
.
<xs:complexType name="wsdlExtensions">
<xs:attribute name="singleFile" type="boolean_Type" use="optional" default="True" />
</xs:complexType>
%VS_INSTALL_DIR%\xml\Schemas\DotNetConfig.xsd
文件用于 Intellisense,除非 Visual Studio 配置为使用其他文件。
Use
中带有勾号的文件列用于智能感知。
<?xml version="1.0" encoding="us-ascii"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"
elementFormDefault="qualified" attributeFormDefault="unqualified"
vs:helpNamespace="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<!-- Child elements omitted for brevity -->
</xs:schema>
wsdlExtensions
的合适级别行为扩展元素是
system.serviceModel/C/behaviors/C/endpointBehaviors/C/behavior/C
哪里
C
是
complexType/choice
元素。
<?xml version="1.0" encoding="us-ascii"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"
elementFormDefault="qualified" attributeFormDefault="unqualified"
vs:helpNamespace="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<!-- Omitted elements at various levels for brevity -->
<xs:element name="system.serviceModel" vs:help="configuration/system.serviceModel">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="behaviors" vs:help="configuration/system.serviceModel/behaviors">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="endpointBehaviors" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="behavior" vs:help="configuration/system.serviceModel/behaviors/endpointBehaviors/behavior">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="wsdlExtensions" type="wsdlExtensions" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
关于WCFExtras - 元素行为具有无效的子元素 'wsdlExtensions' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5560331/
“wsdlExtensions”下方有一条蓝线,表示有问题。 The element 'behavior' has invalid child element 'wsdlEx
我是一名优秀的程序员,十分优秀!