How to determine if Cassini is what's running your web app?
Basically, the question in the title - how can I / is it possible to determine that Cassini is what's running my app versus IIS? Basically I want my code to know that it's debugging, so if I'm missing something easier here, please point it out. return AppDomain.CurrentDomain .GetAssemblies() .Any( a => a.FullName.StartsWith("WebDev.WebHost") ); You can look at the port. Casini always runs on a random high port. IIS will usually be 80 or 443 unless you've configured it differently. If your goal is solely to determine whether you are debugging (in which case the build configuration will probably