错误:无法导入wsdl:binding和错误:无法导入wsdl:porttype继续显示.
任何输入都会非常感激.
Attempting to download Metadata from ‘http://localhost:64903/Services/ServiceWcfS.svc’ using WS-Metadata Exchange or disCO.
Error: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension:
System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: ISerializable type with data contract name ‘PropertyChangedEventHandler’ in namespace ‘http://schemas.datacontract.org/2004/07/System.ComponentModel’ cannot be imported. The data contract namespace cannot be customized for ISerializable types and the generated namespace ‘Accesspoint.WcfServices.ServiceWcfS’ does not match the required CLR namespace ‘System.ComponentModel’. Check if the required namespace has been mapped to a different data contract namespace and consider mapping it explicitly using the namespaces collection.
XPath to Error Source: //wsdl:deFinitions[@targetNamespace=’http://tempuri.org’]/wsdl:portType[@name=’IServiceWcfS’]Error: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType://wsdl:deFinitions[@targetNamespace='http://tempuri.org']/wsdl:portType[@name='IServiceWcfS']
XPath to Error Source://wsdl:deFinitions[@targetNamespace='http://tempuri.org']/wsdl:binding[@name='BasicHttpBinding_IServiceWcfS']
Error: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding://wsdl:deFinitions[@targetNamespace='http://tempuri.org']/wsdl:binding[@name='BasicHttpBinding_IServiceWcfS']
XPath to Error Source://wsdl:deFinitions[@targetNamespace='http://tempuri.org']/wsdl:service[@name='ServiceWcfS']/wsdl:port[@name='BasicHttpBinding_IServiceWcfS']
Error: No endpoints compatible with Silverlight 4 were found. The generated client class will not be
usable unless endpoint @R_782_4045@ion is provided via the constructor.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。