title: HttpModule invoke in GAC
body: <p>I just copied the class which was given in the URL <a href="https://msdn.microsoft.com/en-us/library/vstudio/ms227673%28v=vs.85%29.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/vstudio/ms227673%28v=vs.85%29.aspx</a>  and created HttpModule and registered this HttpModule in web.config under  section as said below.</p>
  
  <pre><code>        &lt;httpModules&gt;
  &lt;add name="HelloWorldModule" type="HelloWorldModule, MyAssembly" /&gt;      
  &lt;/httpModules&gt;
  </code></pre>
  
  <p>I deployed my DLL in GAC and restarted the IIS, but “Init(HttpApplication application)” has not been called while accessing any of my ASPX file.</p>
  
  <p>Then, I registered HttpModule in web.config under  Section as said below.</p>
  
  <pre><code>  &lt;modules runAllManagedModulesForAllRequests="true"&gt;
    &lt;add name="HelloWorldModule" type="HelloWorldModule, MyAssembly" /&gt;
    &lt;/modules&gt;
  </code></pre>
  
  <p>As a practice, We will not copy any of the DLL in our web application so far, instead all the DLL’s will be deployed in GAC. HttpModule implementation can’t invoke from the DLL which is deployed in GAC?  </p>