Why won\'t Environment.GetEnvironmentVariable(\"variableName\") get a variable\'s value if the call is made from within a webMethod hosted on IIS and it will wo
Environment.GetEnvironmentVariable(\"variableName\")
Restarting Visual Studio fixed it for me (guessing IIS Express also caches these values).