Setup is as follows:
- Grid has been working for a long time (Grid var = bbygrid)
- Need to export to Excel. I am assuming that the .toExcel function grabs all the data in the grid (which does not use paging or smart rendering) and streams the XML to waiting .ASHX page
- added download (grid-excel-net.zip) to webserver and unzipped into new subdirectory under grid.
- On Windows 2012 64 bit and IIS 8.4, Application pool has 32 bit App’s enabled, .Net level is 4.0 and pipeline mode is Integrated
- added following to source code:
function exportXgridCell() {
bbygrid.toExcel(‘/eb2b-jscript/dhtmlxGrid/codebase/grid-excel-net/Generate.ashx’);
}
Receiving error:
Event code: 3006
Event message: A parser error has occurred.
Event time: 12/15/2015 5:12:26 PM
Event time (UTC): 12/15/2015 10:12:26 PM
Event ID: 6b6147a5dd3d4c31b0d09f54fa5bc907
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-130946911460958411
Trust level: Full
Application Virtual Path: /
Application Path: C:\tgw-www-stg\
Machine name: WWWSTAGING3
Process information:
Process ID: 4864
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: HttpParseException
Exception message: Could not create type ‘Generator.Generator’.
QUESTIONS:
- Has anyone seen this error before?
- Is using Grid Pro enough to be able to use the convert Excel?
- Is .Net 4.0 okay or should it be .Net 2.0?
- How do I change the output directory for the generated Excel file?
- Using a JavaScript call directly to .toExcel is okay? i.e. a jquery / ajax http request isn’t necessary (i.e. .toExcel does it for me)
Thanks, Rich