Ok guys I found alternative way to do the same functionality which doesn't require any server side components. Here is the code.
Response.ClearContent();
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
Response.AddHeader("Content-Disposition", "attachment;filename=UserList.xls");
DataGrid grid = new DataGrid();
grid.DataSource = <<DataList>>;
grid.DataBind();
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
grid.RenderControl(htw);
Response.Write(htw.InnerWriter);
Response.End();
It allows to export to XLS or XLSX depends on your need.