Is application is runned under IIS or VS web-server
Posted
by zerkms
on Stack Overflow
See other posts from Stack Overflow
or by zerkms
Published on 2010-06-01T01:00:13Z
Indexed on
2010/06/01
1:03 UTC
Read the original article
Hit count: 237
ASP.NET
How to determine whether asp.net (mvc2) application is running under IIS (7) or VS internal web-server?
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)
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?
© Stack Overflow or respective owner