
错误:无法导入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 information is provIDed via the constructor.
System.ServiceModel.Description.DataContractSerializerMessageContractimporter Error: ISerializable type with data contract name 'PropertyChangedEventHandler' in namespace...
PropertyChangedEventHandler是委托类型,因此不可序列化,查找正在使用它的内容(数据协定或服务方法)并将其删除.
总结以上是内存溢出为你收集整理的c# – 尝试添加silverlight服务时出现“无法导入wsdl:binding”错误全部内容,希望文章能够帮你解决c# – 尝试添加silverlight服务时出现“无法导入wsdl:binding”错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)