You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Windows 10, IIS with AspNetCoreModule hosting an Asp.NET Core application on top of full framework.
Steps to reproduce
Let’s say there are some existing environment variables already set on the system. In our case these were COR_ENABLE_PROFILING and COR_PROFILER. See screenshot.
In web.config we wanted to overwrite these settings like this:
I looked into the environment variables for the process with Process Explorer and as you see both values are added to the process.
Expected behavior
The environment variables set in the web.config should overwrite the existing ones.
Current workaround
I created a runWebapplication.bat file, with the following content and in the web.config I replaced processPath=".\WebApplication4.exe" by processPath=".\ runWebapplication.bat".
@echo off
SET COR_ENABLE_PROFILING=0x01
SET COR_PROFILER={B7038F67-52FC-4DA2-AB02-969B3C1EDA03}
WebApplication4.exe