This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема Помогите

.chiron

Новый участник
25 Апр 2021
77
3
69
Вот ошибка с запуском сервера.

After parsing a value an unexpected character was encountered: g. Path '[0].Name', line 1, position 51.
After parsing a value an unexpected character was encountered: g. Path '[0].Name', line 1, position 51.
After parsing a value an unexpected character was encountered: g. Path '[0].Name', line 1, position 51.
20:30:17.071 [Error] | BusinessManager => EXCEPTION AT "BUSINESSES":
Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: g. Path '[0].Name', line 1, position 51.
at Newtonsoft.Json.JsonTextReader.ParsePostValue(Boolean ignoreComments)
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Golemo.Core.BusinessManager.onResourceStart() in E:\sborka\server\dotnet\resources\GameMode\Golemo\Core\Businesses.cs:line 35
 

XDeveluxe

⚡️BackEnd Developer
Команда форума
Moderator
High developer
BackEnd developer
30 Авг 2021
2,766
1,581
211
28

Учимся искать по форуму.
Проблема уже спрашивалась 25 раз кем только можно.
Ошибка происходит при JsonConvert.DeserializeObject в Businesses.cs в методе onResourceStart() на 35 линии.
Проблема в том, что в базе данных, у какого-то бизнеса внутри продуктов есть проблема, ищи в каком именно, исправляй json строку. Заместо тебя это никто не поправит, потому что проблема в твоей бд, в твоей таблице, у твоих бизнесов, либо скидывай всем свою таблицу и жди, пока кому-то будет не лень её всю просматривать, либо ищи ошибку сам.
 

.chiron

Новый участник
25 Апр 2021
77
3
69
thx