P
Philipp Schumann
Hi,
In a class library that may be consumed by .exe as well as web applications,
I need to determine the "main" or "entry" assembly of the current
application. Unfortunately, Assembly.GetEntryAssembly() doesn't produce the
main assembly of a currently executing web application, for example
"c:\inetpub\wwwroot\my.site.dll" (which would be better than a temporary
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\my.site\934aac6a\e239367\kmbnrlfj.dll" or whatever path -- which I
don't get either, GetEntryAssembly simply returns null in a web context).
Any ideas?
Many thanks,
Phil
In a class library that may be consumed by .exe as well as web applications,
I need to determine the "main" or "entry" assembly of the current
application. Unfortunately, Assembly.GetEntryAssembly() doesn't produce the
main assembly of a currently executing web application, for example
"c:\inetpub\wwwroot\my.site.dll" (which would be better than a temporary
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\my.site\934aac6a\e239367\kmbnrlfj.dll" or whatever path -- which I
don't get either, GetEntryAssembly simply returns null in a web context).
Any ideas?
Many thanks,
Phil