In a core assembly, which is run both in a windows service, and in a web application, I need to store information per user session. The service will have a single user sessi
Just so no one else are making the same mistake as me.
Assembly.GetEntryAssembly() do not work to define if its an web application or a not. When it's running as a service then Assembly.GetEntryAssembly() are null, but when i debug from VS, it's not null.