User-1813520879 posted
I'm encountering this issue with only
- Windows Server 2016 (Win2016) and
- VisualStudio-redistributable 2015 (VS-redist-2015 = msvcp14)
c# Environment.SetEnvironmentVariable(key,val, EnvironmentVariableTarget.Process)
does not seem to set values that can be retrieved on the native-C app using getenv()
native-C app getenv() can read the values OK using Win2016 + VS-redist-2010
c# -> native-C app communication is through PInvoke (using SWIG),
and c# and native-C app runs in worker process in IIS.
This works fine in Windows Server 2012 and 2008 using VS-redist-2015
Any thought / suggestion will be appreciated.
ps. not sure which forum this question should be posted, so i posted it here.