指定的架构无效 [英] Schema specified is not valid

查看:446
本文介绍了指定的架构无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Exception Details: System.Data.MetadataException: Schema specified is not valid. Errors:
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'ItemEnum'. Previously found CLR type 'UniFeriBank_Webservice.Entity.GlobalBank.ItemEnum', newly found CLR type 'UniFeriBank_Webservice.ContractTypes.ItemEnum'.
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'CurrencyEnum'. Previously found CLR type 'UniFeriBank_Webservice.Entity.GlobalBank.CurrencyEnum', newly found CLR type 'UniFeriBank_Webservice.ContractTypes.CurrencyEnum'.
The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'UPNCodeEnum'. Previously found CLR type 'UniFeriBank_Webservice.Entity.GlobalBank.UPNCodeEnum', newly found CLR type 'UniFeriBank_Webservice.ContractTypes.UPNCodeEnum'.





Any想法或解决方案?在我们的项目中,我们没有类合同类型,这个类是否从visual studio自动生成?谢谢:)



Any idea or solution? In our project we don't have class "Contract Types", is this class automatic generated from visual studio? Thanks :)

推荐答案

问题解决了。 xsd scheme和wsdl scheme之间存在争议。
The problem is solved. There was a dispute between xsd scheme and wsdl scheme.


这篇关于指定的架构无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆