Possible Duplicate:
GetEntryAssembly for web applications
There is class library which gets its executing assembly location by calling GetEntryAssembly()
. However using that class library in ASP.NET web application that function returns null.
Is it possible to get location of ASP.NET application executable from class library which it calls?
GetCallingAssembly()
is not suitable since the function is not called directly from web application.