title: error in calling ashx handler in simple sharepoint project
body: <p>I got this error when I browsed web/_layouts/handler/ahandler.ashx</p>
  
  <pre><code> An error occurred during the processing of /_layouts/handler/ahandler.ashx. Could not create type 'BabyClubDemo.Layouts.Handler.AHandler'.
  </code></pre>
  
  <p>Here is my ashx page</p>
  
  <pre><code>&lt;%@ WebHandler Language="C#" CodeBehind="AHandler.ashx.cs" Class="BabyClubDemo.Layouts.Handler.AHandler" %&gt;
  </code></pre>
  
  <p>Here is my ashx.cs</p>
  
  <pre><code>using System;
  using System.Web;
  
  namespace BabyClubDemo.Layouts.Handler
  {
  public class AHandler : IHttpHandler
  {
      /// &lt;summary&gt;
      /// You will need to configure this handler in the web.config file of your 
      /// web and register it with IIS before being able to use it. For more information
      /// see the following link: http://go.microsoft.com/?linkid=8101007
      /// &lt;/summary&gt;
      #region IHttpHandler Members
  
      public bool IsReusable
      {
          // Return false in case your Managed Handler cannot be reused for another request.
          // Usually this would be false in case you have some state information preserved per request.
          get { return false; }
      }
  
      public void ProcessRequest(HttpContext context)
      {
          context.Response.Clear();
          context.Response.ContentType = "application/json; charset=utf-8";
          context.Response.Write(CallServerFunction(context));
      }
  
      private string CallServerFunction(HttpContext context)
      {
  
          return "testing the applicaiton";
      }
  
      #endregion
  }
  </code></pre>
  
  <p>}</p>
  
  <p>What could be the possible issue ? my .net framework is 3.5.</p>