Server Error in '/' Application.

Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

Source Error:


Line 16:         var Objekt = RestAPI_Product.GetAsync(APISettings["Url"] + "/Article?Firm=" + ConfigurationManager.AppSettings["Firm"] + "&ProdNo=" + ProdNo).Result;
Line 17: 
Line 18:         ProductDetailed[] product = JsonConvert.DeserializeObject<ProductDetailed[]>(Objekt.Content.ReadAsStringAsync().Result);
Line 19: 
Line 20:         %>

Source File: c:\Logistikkhuset PLD AS\Nito2019\product.aspx    Line: 18

Stack Trace:


[JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.]
   Newtonsoft.Json.JsonTextReader.ParseValue() +1232
   Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) +106
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) +749
   Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +264
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) +170
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value, JsonSerializerSettings settings) +53
   ASP.index_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\Logistikkhuset PLD AS\Nito2019\product.aspx:18
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0