当前位置: 代码迷 >> Web Service >> 摘引WCF后项目生成报错
  详细解决方案

摘引WCF后项目生成报错

热度:571   发布时间:2013-07-01 12:33:04.0
引用WCF后项目生成报错
同事电脑生成发布正常

错误信息如下:

错误 37 Reference.svcmap: 未能为服务引用“WcfService.EmailService”生成代码。  无法导入 wsdl:portType  详细信息: 在运行 WSDL 导入扩展时引发异常: System.ServiceModel.Description.DataContractSerializerMessageContractImporter  错误: 类型“Newtonsoft.Json.Linq.JToken”是不支持的递归集合数据协定。请考虑修改集合“Newtonsoft.Json.Linq.JToken”的定义,移除对其自身的引用。  错误来源的 XPath: //wsdl:definitions[@targetNamespace='www.valorcomm.com']/wsdl:portType[@name='EmailService']  无法导入 wsdl:binding  详细信息: 导入 wsdl:binding 所依赖的 wsdl:portType 时出错。  wsdl:portType 的 XPath: //wsdl:definitions[@targetNamespace='www.valorcomm.com']/wsdl:portType[@name='EmailService']  错误来源的 XPath: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_EmailService']  无法导入 wsdl:port  详细信息: 导入 wsdl:port 所依赖的 wsdl:binding 时出错。  wsdl:binding 的 XPath: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_EmailService']  错误来源的 XPath: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='EmailService']/wsdl:port[@name='BasicHttpBinding_EmailService'] App_WebReferences/WcfService/EmailService/

(公司做了限制 不能上传图片  见谅)

------解决方案--------------------
请考虑修改集合“Newtonsoft.Json.Linq.JToken”的定义
不是说的很清楚么
  相关解决方案