Page 1 of 1

Validation failed for one or more X + C O localhost:53661/Store Manager/Index Server Error in '/' Application. Validatio

Posted: Sat Nov 27, 2021 2:31 pm
by answerhappygod
Validation Failed For One Or More X C O Localhost 53661 Store Manager Index Server Error In Application Validatio 1
Validation Failed For One Or More X C O Localhost 53661 Store Manager Index Server Error In Application Validatio 1 (335.11 KiB) Viewed 93 times
getting this error when try to open store manager in c sharp mvc framework
Validation failed for one or more X + C O localhost:53661/Store Manager/Index Server Error in '/' Application. Validation failed for one or more entities. See 'Entity ValidationErrors' property Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information Exception Details: System.Data.Entity. Validation DbEntity ValidationException: Validation failed for one or more entities. See 'Entity ValidationErrors Source Error: public Action Result Index() public Line 18: Line 19: Line 20: Line 21: Line 22: ViewBag. AllCharacters = db.Characters. Tolist(); var albums = db.Albums. Include (a => a.Company). Include(a => a. Character return View(albums. ToList()); Source File: C:\Users\rubal source repos\group9_Assign3\group9_Assign31Controllers\Store Manager Controller.cs Stack Trace: Line: 20 [DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidati System.Data.Entity.Internal.InternalContext.SaveChanges() +168 System.Data.Entity. Internal.Lazy Internal Context.SaveChanges() +27 System.Data.Entity.DbContext.SaveChanges() +20 System.Data.Entity. DropCreateDatabaseAlways 1. InitializeDatabase (TContext context) +118 System.Data.Entity.Internal.<>c__DisplayClassf 1.CreateInitializationAction>b_e() +76 System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +60 [DataException: An exception occurred while initializing the database. See the InnerException System.Data.Entity.Internal. InternalContext. PerformInitializationAction(Action action) +122 System.Data.Entity.Internal. Internal Context. PerformDatabaseInitialization() +357 System.Data.Entity.Internal.Lazy InternalContext.<InitializeDatabase>b_4(InternalContext c) System.Data.Entity.Internal. RetryAction 1. PerformAction(TInput input) +110 System.Data.Entity.Internal.Lazy InternalContext. InitializeDatabaseAction(Action`1 action) +1 System.Data.Entity. Internal. Lazy InternalContext. InitializeDatabase() +73 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType (Type entityType) System.Data.Entity.Internal.Linq. Internalset 1. Initialize() +53 System.Data.Entity.Internal.Linq. InternalSet 1.GetEnumerator() +15 System.Data.Entity.Infrastructure.DbQuery`1.System.Collections.Generic. IEnumerable<TResult>. System.Collections.Generic.List 1..ctor(IEnumerable 1 collection) +174 System.Linq. Enumerable. Tolist(IEnumerable 1 source) +61 group_Assign3.Controllers.StoreManagerController.Index() in C:\Users\rubal\source repos\grou lambda_method(Closure, ControllerBase Object[] ) +61 System.Web.Mvc. ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters System.Web.Muc. ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictio System.Web.Mvc. ControllerAction Invoker. InvokeActionMethod(ControllerContext controllerContext System Web Mye. Async' c <Beoin Invokesynchronous ActionMethods 9 (TaavncResult