I have a three dropdown lists that are populated with data that uses GUIDs for the ID. The lists show all the correct values, I can select the correct indexes, etc. however after the initial data is populated in the dropdown, the following Chrome error is shown for each dropdown list:
ejs.interop.min.js:1 Newtonsoft.Json.JsonReaderException: Input string '6878bdf3-fafa-e72c-ea29-4342f90800e4' is not a valid number. Path '', line 1, position 36.
at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)
at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type)
at Syncfusion.EJ2.Blazor.BaseComponent.ChangeType(Object value, Type conversionType)
at Syncfusion.EJ2.Blazor.BaseComponent.UpdateModel(Dictionary`2 obj)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.JSInterop.DotNetDispatcher.InvokeSynchronously(String assemblyName, String methodIdentifier, Object targetInstance, String argsJson)
at Microsoft.JSInterop.DotNetDispatcher.BeginInvoke(String callId, String assemblyName, String methodIdentifier, Int64 dotNetObjectId, String argsJson)
Error: Newtonsoft.Json.JsonReaderException: Input string '6878bdf3-fafa-e72c-ea29-4342f90800e4' is not a valid number. Path '', line 1, position 36.
at Newtonsoft.Json.JsonTextReader.ParseReadNumber(ReadType readType, Char firstChar, Int32 initialPosition)
at Newtonsoft.Json.JsonTextReader.ParseNumber(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type)
at Syncfusion.EJ2.Blazor.BaseComponent.ChangeType(Object value, Type conversionType)
at Syncfusion.EJ2.Blazor.BaseComponent.UpdateModel(Dictionary`2 obj)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.JSInterop.DotNetDispatcher.InvokeSynchronously(String assemblyName, String methodIdentifier, Object targetInstance, String argsJson)
at Microsoft.JSInterop.DotNetDispatcher.BeginInvoke(String callId, String assemblyName, String methodIdentifier, Int64 dotNetObjectId, String argsJson)
at endInvokeDotNetFromJS (https://localhost:44361/_framework/blazor.server.js:8:29602)
at https://localhost:44361/_framework/blazor.server.js:8:29253
at new Promise (<anonymous>)
at e.beginInvokeJSFromDotNet (https://localhost:44361/_framework/blazor.server.js:8:29222)
at https://localhost:44361/_framework/blazor.server.js:1:19148
at Array.forEach (<anonymous>)
at e.invokeClientMethod (https://localhost:44361/_framework/blazor.server.js:1:19119)
at e.processIncomingData (https://localhost:44361/_framework/blazor.server.js:1:17165)
at e.connection.onreceive (https://localhost:44361/_framework/blazor.server.js:1:10276)
at WebSocket.i.onmessage (https://localhost:44361/_framework/blazor.server.js:1:37978)
As stated, this doesn't appear to be affecting functionality at this time but it is a concern that there may be some bug lurking that I haven't come across yet. For reference, here is how one of the dropdown lists is defined:
Where @SelectedProjectTypeIndex is a number to select the correct item on loading and DropwDownData is defined thus: