umbraco 8 datatype prevalues getting error Unable to cast object of type 'System.Collections.Generic.Dictionary
Not sure where to start here but I have a datatype I are trying to create. I have the user interface workingfor the page loaout side and the prevalues but are know trying to join them to gether.
so the manifest
editor: {
view: "~/App_Plugins/IBD.GalleryItems/IBD.GalleryItems.View.html",
valueType: "JSON"
},
prevalues : {
fields: [
{
label: "Row Options",
description: "The number of items per row and the slick slider control string",
key: "items",
view: "~/App_Plugins/IBD.GalleryItems/IBD.GalleryItems.Prevalues.html"
}
]
}
Possibly unhandled rejection: {"data":{"Message":"An error has occurred.","ExceptionMessage":"Unable to cast object of type 'System.Collections.Generic.Dictionary2[System.String,System.Object]' to type 'Umbraco.Core.PropertyEditors.ValueListConfiguration'.","ExceptionType":"System.InvalidCastException","StackTrace":" at IBDBackOfficeApi.IBDBackOfficeController.GalleryItemPrevalue(Int32 dataTypeID) in D:\\Web Development\\Zeke Project\\ZekeCore\\Api\\IbdBackOfficeApi.cs:line 26\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.
Trying to learn something new so if anyone can get me heading in the right direction would be good.
umbraco 8 datatype prevalues getting error Unable to cast object of type 'System.Collections.Generic.Dictionary
Not sure where to start here but I have a datatype I are trying to create. I have the user interface workingfor the page loaout side and the prevalues but are know trying to join them to gether.
so the manifest
to access request the pre values
and the api routine
[HttpGet] public HttpResponseMessage GalleryItemPrevalue(int dataTypeID) { IDataTypeService dataTypeService = Services.DataTypeService;
so every thing is working but it bails out here
this is the error
Possibly unhandled rejection: {"data":{"Message":"An error has occurred.","ExceptionMessage":"Unable to cast object of type 'System.Collections.Generic.Dictionary
2[System.String,System.Object]' to type 'Umbraco.Core.PropertyEditors.ValueListConfiguration'.","ExceptionType":"System.InvalidCastException","StackTrace":" at IBDBackOfficeApi.IBDBackOfficeController.GalleryItemPrevalue(Int32 dataTypeID) in D:\\Web Development\\Zeke Project\\ZekeCore\\Api\\IbdBackOfficeApi.cs:line 26\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary
2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.Trying to learn something new so if anyone can get me heading in the right direction would be good.
Found a solution but there has to be a better way.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.