psauthor / coreapifundamentals Goto Github PK
View Code? Open in Web Editor NEWThe Starting Code for the Core API Fundamentals course using ASP.NET Core course on Pluralsight
License: GNU General Public License v3.0
The Starting Code for the Core API Fundamentals course using ASP.NET Core course on Pluralsight
License: GNU General Public License v3.0
I downloaded the 5.0 code version. I cd to the directory in the terminal to update the database. however, I keep getting the following:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
Hi,
I run in a error if I try to call the api with the includeTasks = true (http://localhost:6600/api/camps?includeTalks=true).
This is the error message:
> Error mapping types.
>
> Mapping types:
> Object -> CampModel[]
> System.Object -> CoreCodeCamp.Models.CampModel[]
I am using .net Core 5.
Do you have any hint for me in order to fix this.
Thanks Sven
I do not know what is happening
I need help please @shawnwildermuth
https://github.com/Jorge2000/C_Sharp_API/tree/master/src this is my repo
I'm going for this video of your course https://app.pluralsight.com/course-player?clipId=3a555a91-7c6c-41ea-ae3c-9dcdb2cb0e7f
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware:Error: An unhandled exception has occurred while executing the request.
AutoMapper.AutoMapperMappingException: Error mapping types.
Mapping types:
Camp[] -> CampModel[]
CoreCodeCamp.Data.Camp[] -> CoreCodeCamp.Models.CampModel[] ---> AutoMapper.AutoMapperMappingException: Error mapping types.
Mapping types:
Camp -> CampModel
CoreCodeCamp.Data.Camp -> CoreCodeCamp.Models.CampModel
Type Map configuration:
Camp -> CampModel
CoreCodeCamp.Data.Camp -> CoreCodeCamp.Models.CampModel
Destination Member:
Talks
---> AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
Mapping types:
Talk -> TalkModel
CoreCodeCamp.Data.Talk -> CoreCodeCamp.Models.TalkModel
at lambda_method(Closure , Talk , TalkModel , ResolutionContext )
at AutoMapper.Mapper.Map[TSource,TDestination](TSource source, TDestination destination, ResolutionContext context, IMemberMap memberMap) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 194
at lambda_method(Closure , Camp[] , CampModel[] , ResolutionContext )
--- End of inner exception stack trace ---
at lambda_method(Closure , Camp[] , CampModel[] , ResolutionContext )
--- End of inner exception stack trace ---
at lambda_method(Closure , Camp[] , CampModel[] , ResolutionContext )
at lambda_method(Closure , Object , Object , ResolutionContext )
at AutoMapper.Mapper.Map[TDestination](Object source) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 35
at CoreCodeCamp.Controllers.CampsController.Get(Boolean includeTalks) in C:\Users\Intellisys\Desktop\CoreApiFundamentals\src\Controllers\CampsController.cs:line 29
at lambda_method(Closure , Object )
at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at System.Threading.Tasks.ValueTask`1.get_Result()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\2.2.8\Microsoft.AspNetCore.Http.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.