Click here to Skip to main content
15,943,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 idea or solution? In our project we don't have class "Contract Types", is this class automatic generated from visual studio? Thanks :)
Posted
Comments
CHill60 11-Jan-14 12:49pm    
Nope it's not auto generated. Do you have a table ContractTypes or an enum of that name?

1 solution

The problem is solved. There was a dispute between xsd scheme and wsdl scheme.
 
Share this answer
 
Comments
Maciej Los 11-Jan-14 17:01pm    
Mark your answer as a solution (green button).
ilaya muthumanickam 22-Aug-14 2:20am    
How can you reproduce this issue please guide me i have face the same problem now....

Schema specified is not valid. Errors:

The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'tbl_CRCdetails'. Previously found CLR type 'School_365_Deom4.Ins_A.tbl_CRCdetails', newly found CLR type 'School_365_Deom4.Ins_B.tbl_CRCdetails'.

The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'tbl_div_details'. Previously found CLR type 'School_365_Deom4.Ins_A.tbl_div_details', newly found CLR type 'School_365_Deom4.Ins_B.tbl_div_details'.

The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'tbl_staticfielddetails'. Previously found CLR type 'School_365_Deom4.Ins_A.tbl_staticfielddetails', newly found CLR type 'School_365_Deom4.Ins_B.tbl_staticfielddetails'.

The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'tbl_student'. Previously found CLR type 'School_365_Deom4.Ins_A.tbl_student', newly found CLR type 'School_365_Deom4.Ins_B.tbl_student'.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900