I have an application running in local IIS and also in production. In this application, I have a feature where, when an error occurs, an email is sent. The problem is that I do not want this to happen when I'm in a development environment.
I thought of determining some environment variable to do this in IIS (however I want this variable to be specific to that application).
Is there any way to set environment variables specific to an application running in IIS?