title: Is application is runned under IIS or VS web-server
body: <p>How to determine whether asp.net (mvc2) application is running under IIS (7) or VS internal web-server?</p>
  
  <p>Clarification why I need this: I'm composing different dependency graph for IoC-container (ninject) that depends on the workaround (develop - when local VS, and production - when IIS)</p>
  
  <p>Or may be another great solution so I can simply differ 3 workarounds: local (VS), test server (IIS) or production server (IIS). How in this case to differ the server? By PC name?</p>