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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 91 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply