首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web Service >

摘引WCF后项目生成报错

2013-07-01 
引用WCF后项目生成报错同事电脑生成发布正常错误信息如下:错误37Reference.svcmap: 未能为服务引用“WcfSer

引用WCF后项目生成报错
同事电脑生成发布正常

错误信息如下:

错误37Reference.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”的定义
不是说的很清楚么

热点排行