Here I will explain how to generate excel from json. I am using NPOI and Newtonsoft.Json third party dll for this. Download dll from here : https://drive.google.com/file/d/0B2UW8NPznIKsdzJSWDBDX2xLSms/view JSON For Test : [ { "ID" : "1", "NAME" : "Nikhil Sangani", "MOBILENO" : "123456789", "DESIGNATION" : "Web Developer" } ] First of all i am create aspx page design like this. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <table> <tr> <td> JSON STRING :<asp:TextBox runat="server" ID="txtjsonstring"></asp:TextBox> </td> </tr> <tr>
Here you can find solution of your code problem & errors.