Wednesday, November 20, 2019

Monday, November 18, 2019

Unable to load DLL 'Syncfusion.WebKitWrapper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)



Solution:


Our WebKit HTML converter requires VC++ 2010 redistributable (MSVCP100.dll and MSVCR100.dll) for HTML to PDF conversion. If VC++ 2010 redistributable is not present in server then the converter may throw this exception. So, please make sure the VC++ redistributables are present in the server

How to configure length value in query string in ASP.Net Core?

Need to Add following lines of code in Web.config
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxQueryString="32768"/>
    </requestFiltering>
  </security>
</system.webServer>

Tuesday, November 5, 2019

Converting Json Object into List in C#


Json Object Structure :

var readResult = "{\"data\":[{\"id\":1,\"fullname\":\"Todd\",\"email\":\"phoenix@apiexample.com\",\"age\":19,\"address\":\"No:49,anna salai\"}]}"


Conversion logic :

JObject jObject = JObject.Parse(readResult);
JArray user = (JArray)jObject["data"];
List<user> UserObj = user.ToObject<List<user>>();

The user model contains following properties

id, fullname, email, age, address