Server Error in '/' Application.

class_not_found, DrWhyAPI.Security.GestioneLingue___2Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: c. Path '', line 0, position 0.
  at Newtonsoft.Json.JsonTextReader.ParseValue() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 1097
  at Newtonsoft.Json.JsonTextReader.Read() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 397
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 1400
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 153
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs:line 546
  at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 928
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 888
  at DrWhyWebIT.classiDiSupporto.DRGateway.sendAndReceive[T](String token, String classpath, String method, Dictionary`2 parametri, String domain) in e:\progetti\18_DottorWhy\1_DottorWhyOnline\DrWhyEntity\DrGateway.cs:line 59

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: System.Exception: class_not_found, DrWhyAPI.Security.GestioneLingue___2Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: c. Path '', line 0, position 0.
  at Newtonsoft.Json.JsonTextReader.ParseValue() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 1097
  at Newtonsoft.Json.JsonTextReader.Read() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 397
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 1400
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 153
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs:line 546
  at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 928
  at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 888
  at DrWhyWebIT.classiDiSupporto.DRGateway.sendAndReceive[T](String token, String classpath, String method, Dictionary`2 parametri, String domain) in e:\progetti\18_DottorWhy\1_DottorWhyOnline\DrWhyEntity\DrGateway.cs:line 59

Source Error:


Line 47:                 String drwhyapi_developer_key = (String)System.Configuration.ConfigurationManager.AppSettings["drwhyapi_developer_key"];
Line 48: 
Line 49:                 r_Lingua myResultLingue = DRGateway.sendAndReceive<r_Lingua>(drwhyapi_developer_key, "DrWhyAPI.Security.GestioneLingue", "getTutteLeLingue", null,ViewBag.domian);
Line 50:                 i_Lingua myLingua = myResultLingue.result.Where(p => p.codice_iso == ViewBag.lang).Single();
Line 51:                     

Source File: c:\inetpub\DrWhyIT\Views\Community\Index.cshtml    Line: 49

Stack Trace:


[Exception: class_not_found, DrWhyAPI.Security.GestioneLingue___2Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: c. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 1097
   at Newtonsoft.Json.JsonTextReader.Read() in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 397
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 1400
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 153
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs:line 546
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 928
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in c:\Dev\Releases\Working\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 888
   at DrWhyWebIT.classiDiSupporto.DRGateway.sendAndReceive[T](String token, String classpath, String method, Dictionary`2 parametri, String domain) in e:\progetti\18_DottorWhy\1_DottorWhyOnline\DrWhyEntity\DrGateway.cs:line 59]
   DrWhyWebIT.classiDiSupporto.DRGateway.sendAndReceive(String token, String classpath, String method, Dictionary`2 parametri, String domain) in e:\progetti\18_DottorWhy\1_DottorWhyOnline\DrWhyEntity\DrGateway.cs:83
   System.Dynamic.UpdateDelegates.UpdateAndExecute6(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) +871
   ASP._Page_Views_community_Index_cshtml.Execute() in c:\inetpub\DrWhyIT\Views\Community\Index.cshtml:49
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +123
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +104
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +658
   System.Web.Mvc.Controller.ExecuteCore() +143
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +57
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +36
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


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