Contributions
Swagger ui throwing an exception for Hashtable when i use Newtonsoft.Json version 12.0.1
When i execute my application it throws an error when i useNewtonsoft.Json 12.0.1 dll: Http Error 500 : { "Message":"An error has occurred.", "ExceptionMessage":"Type System.Collections.Hashtable& is not a dictionary." } when i useNewtonsoft.Json 11.0.0 dllit works fine Below is the API method called from the Swagger UI (http://localhost:54738/swagger/ui/index) : [HttpGet] public SortedList<int, XElement> getVariableStates(string sInstanceID, [FromBody] ref Hashtable oVarsDic) { } please find the screenshot of exception.Solved1.9KViews0likes1Comment