title: Am having an error message Could not load type 'Microsoft.Samples.Web.ImageOptimizationModule when using sprites
body: <p>I have an error while using ap sprites.Am not able to do it.</p>
  
  <p>i have added the following code in web.config</p>
  
  <pre><code>&lt;system.webServer&gt;
       &lt;modules runAllManagedModulesForAllRequests="true"&gt;
        &lt;add type="Microsoft.Samples.Web.ImageOptimizationModule"
         name ="Microsoft.Samples.Web.ImageOptimizationModule"/&gt;
      &lt;/modules&gt;
    &lt;/system.webServer&gt;
  
    &lt;system.web&gt;
      &lt;pages&gt;
        &lt;controls&gt;
         &lt;add tagPrefix="asp" namespace="Microsoft.Web.Samples" assembly="Microsoft.Web.Samples.ImageSprite" /&gt;
  
        &lt;/controls&gt;
  
      &lt;/pages&gt;
      &lt;httpModules&gt;
        &lt;add type="Microsoft.Samples.Web.ImageOptimizationModule"
             name="Microsoft.Samples.Web.ImageOptimizationModule" /&gt;
      &lt;/httpModules&gt;
          &lt;compilation debug="true" targetFramework="4.0" /&gt;
      &lt;/system.web&gt;
  </code></pre>
  
  <p>and i have also created a folder App_Sprites.And added reference of <code>ImageSprite</code> and <code>ImageOptimizationFramework</code></p>