title: The namespace '<global namespace>' already contains a definition for 'Handler"
body: <p>This HTml Code</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head id="Head1" runat="server"&gt;
      &lt;title&gt;Capctha Image with Refresh Button&lt;/title&gt;
      &lt;script type="text/javascript"&gt;
          function RefreshCaptcha() {
              var img = document.getElementById("imgcaptcha");
              img.src = "Handler.ashx?query=" + Math.random();
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;img src="Handler.ashx" id="imgcaptcha" /&gt;
      &lt;a href="#" onclick="javascript:RefreshCaptcha();"&gt;Refresh&lt;/a&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;&gt;
  </code></pre>
  
  <p>Captcha.aspx.cs</p>
  
  <pre><code>using System.Drawing;
  using System.Drawing.Imaging;
  
  public class Handler : IHttpHandler
  {
      public void ProcessRequest(HttpContext context)
      {
          using (Bitmap b = new Bitmap(200, 50, PixelFormat.Format32bppArgb))
          {
              using (Graphics g = Graphics.FromImage(b))
              {
                  Rectangle rect = new Rectangle(0, 0, 150, 40);
                  g.FillRectangle(Brushes.White, rect);
  
                  //Creating String Draw
                  Random r = new Random();
                  int StartIndex = r.Next(1, 5);
                  int Length = r.Next(5, 15);
                  string DrawString = Guid.NewGuid().ToString().Replace("-", "0").Substring(StartIndex, Length);
  
  
                  //Creating Fount and Bursh
                  Font drawFont = new Font("Arial", 16, FontStyle.Italic | FontStyle.Strikeout);
  
                  using (SolidBrush drawBrush = new SolidBrush(Color.Blue))
                  {
                      // Create point for upper-left corner of drawing.
                      PointF pointdraw = new PointF(10, 15);
                      // Draw string to screen.
                      g.DrawRectangle(new Pen(Color.Blue, 0), rect);
                      g.DrawString(DrawString, drawFont, drawBrush, pointdraw);
                  }
  
                  b.Save(context.Response.OutputStream, ImageFormat.Jpeg);
                  context.Response.ContentType = "image/jpeg";
                  context.Response.End();
              }
          }
      }
  
      public bool IsReusable
      {
          get
          {
              return false;
          }
      }
      }
  </code></pre>
  
  <p>I am Getting Erros The namespace '' already contains a definition for 'Handler" like this how Can solve it  and Give any idea about error
  and i am adding handler.ashx</p>