Excel Export problem

We recently purchased an enterprise license and are trying to use the .Net grid.toExcel function.

Calling the service (e.g. oGrd.toExcel(“http://dhtmlxgrid.appspot.com/export/excel”), I can get the function to work.

However, calling it locally (e.g oGrd.toPDF(‘codebase/grid-excel-net/Generate.ashx’,‘color’,false,true);), I get the following parser error:
Parser Error Message: Could not create type ‘Generator.Generator’.
Source Error: Line 1: <%@ WebHandler Language=“C#” CodeBehind=“Generate.ashx.cs” Class=“Generator.Generator” %>

FYI, I can get grid.toPDF() working via either the service or locally.