Advertisement
DevUModerator

Untitled

Apr 15th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.
  2. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  3.  
  4. Exception Details: System.Data.Entity.Core.MetadataException: Schema specified is not valid. Errors:
  5. The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Order'. Previously found CLR type 'PapaBob.Persistence.Order', newly found CLR type 'PapaBob.DTO.Order'.
  6. The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.
  7.  
  8. Source Error:
  9.  
  10.  
  11.  
  12. Line 20:
  13. Line 21: //Transform the database of sizes into a list of sizes
  14. Line 22: var dbSizes = db.Sizes.ToList();
  15. Line 23:
  16. Line 24: // Create a new variable which will hold the list of all created sizes of pizzas with their prices
  17.  
  18.  
  19. Source File: C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Persistence\OrderRepsository.cs Line: 22
  20.  
  21. Stack Trace:
  22.  
  23.  
  24.  
  25. [MetadataException: Schema specified is not valid. Errors:
  26. The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Order'. Previously found CLR type 'PapaBob.Persistence.Order', newly found CLR type 'PapaBob.DTO.Order'.
  27. The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.]
  28. System.Data.Entity.Core.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +738
  29. System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +101
  30. System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +78
  31. System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +12
  32. System.Data.Entity.Core.Metadata.Edm.MetadataOptimization.TryUpdateEntitySetMappingsForType(Type entityType) +98
  33. System.Data.Entity.Internal.InternalContext.UpdateEntitySetMappingsForType(Type entityType) +41
  34. System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26
  35. System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +53
  36. System.Data.Entity.Internal.Linq.InternalSet`1.GetEnumerator() +15
  37. System.Data.Entity.Infrastructure.DbQuery`1.System.Collections.Generic.IEnumerable<TResult>.GetEnumerator() +53
  38. System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +375
  39. System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
  40. PapaBob.Persistence.OrderRepsository.GetSizes() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Persistence\OrderRepsository.cs:22
  41. PapaBob.Domain.OrderManager.GetSize() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Domain\OrderManager.cs:18
  42. PapaBob.Presentation.Default.DisplaySizes() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Presentation\Default.aspx.cs:44
  43. PapaBob.Presentation.Default.Page_Load(Object sender, EventArgs e) in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Presentation\Default.aspx.cs:14
  44. System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
  45. System.Web.UI.Control.OnLoad(EventArgs e) +95
  46. System.Web.UI.Control.LoadRecursive() +59
  47. System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement