title: Parse error with Generic Handler using IIS
body: <p>What made me curious is that the generic handler works just fine when I'm running the Web App in a Visual Studio ASP.NET Development Server. When I change the config to run it directly from IIS the handler just dies.</p>
  
  <p>It's an image handler, it writes back an array of bytes to be rendered in an Image object. As I said, it works fine in VS Development Server, but fails on IIS. It doesn't even get called...</p>
  
  <p>The error I get when I'm trying to call it directly is this:</p>
  
  <blockquote>
    <p>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
    'YourImageHandler'. Source Error:  Line 1:  &lt;%@ WebHandler
    Language="C#" CodeBehind="YourImagehandler.ashx.cs"
    Class="YourImageHandler" %></p>
  </blockquote>
  
  <p>Handler on web.config:</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;httpHandlers&gt;
        &lt;add verb="*" path="*.ashx"  type="YourImageHandler"/&gt;
      &lt;/httpHandlers&gt;
  &lt;/system.web&gt; 
  </code></pre>
  
  <p>The Generic Handler is in the same assembly of the Web Project, and the whole thing is running on IIS 7.</p>