Need help with export to pdf / excel using asp

When I click on export to excel button nothing happens. When I click on PDF button here is what happens. Please help

Server Error in ‘/’ Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type ‘Generator.Generator’.

Source Error:

Line 1: <%@ WebHandler Language=“C#” CodeBehind=“Generate.ashx.cs” Class=“Generator.Generator” %>

Source File: /Scripts/dhtmlxGrid/grid-pdf-net/Generate.ashx Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17379

if the class name and namespace is correct,
try to explicitly build your application