How do Determine if Your Application is Running in Cassini
This is really short post, more a tip. If you need to determine if your application is running in IIS or Developer Web Server (Cassini) that comes with Visual Studio, you can test the process name you are running in. For example, the following code: System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName will return the name of the running process. In …
Continue reading ‘How do Determine if Your Application is Running in Cassini’ »