Get entry assembly from ASP.NET application
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4277692/getentryassembly-for-web-applications">GetEntryAssembly for web applications</a>  </p>
</blockquote>



<p>There is class library which gets its executing assembly location by calling <code>GetEntryAssembly()</code>. However using that class library in ASP.NET web application that function returns null.</p>

<p>Is it possible to get location of ASP.NET application executable from class library which it calls?</p>

<p><code>GetCallingAssembly()</code> is not suitable since the function is not called directly from web application.</p>
