Install - .NET Startup Parameters for Framework Agent started on Windows as an IIS Site for Dynamic Analysis
- .NET Framework Compatibility
- Application Pool Prerequisites
- Installation Workflow
- Sample contents of vmargs-example/windows-services file
.NET Framework Compatibility
vFunction supports C# .NET Framework version 4.x applications.
Application Pool Prerequisites
The vFunction Agent requires a distinct Application Pool to be created for the Application if the current Application Pool is used by multiple Applications. Follow these steps to create a new Application Pool if needed.
Installation Workflow
- Install the Dynamic Analysis Controller
- Open the vFunction Framework IIS startup parameters in a text editor
### Replace the REPLACE_BASE_DIR and INSTANCE_NAME below with the actual values
REPLACE_BASE_DIR\config\agent\instances\INSTANCE_NAME\vmargs-examples\IIS - In a text editor, open the
C:\Windows\System32\inetsrv\config\applicationHost.config
XML - Search for the term
applicationPools
in the applicationHost.config - Modify the XML entry for the Application Pool used by the Application using the vmargs-examples\IIS file as a guide
- Save and close the file
- Stop and restart the Application Pool used by the Application
- Create new traffic to the IIS Site so a new Worker Process is launched
- Confirm that the Application comes up and functions as expected
- If any issues arise:
Sample contents of vmargs-example/IIS file
If using this sample below, you will need to:
- Find-and-replace the REPLACE_BASE_DIR with the value relevant to your vFunction installation
- Find-and-replace the REPLACE_INSTANCE with the value relevant to your vFunction installation
This sample file can be found in REPLACE_BASE_DIR\controller-installation\stuff\agent\vmargs-examples\dotnet\framework\IIS
.
Once the install.sh script is run, the relevant placeholder fields are replaced in the version of the environmentally-specific file in REPLACE_BASE_DIR\config\agent\instances\INSTANCE_NAME\vmargs-examples\IIS
.
Open the applicationHost.config XML usually located at: C:\\Windows\\System32\\inetsrv\\config\\applicationHost.config
Under the applicationPools node, find the relevant application pool and add the env vars:
<add name="DefaultAppPool" autoStart="true">
<environmentVariables>
<add name="VF_AGENT_CONF_LOCATION" value="REPLACE_BASE_DIR\config\agent\instances\REPLACE_INSTANCE\conf.json" />
<add name="COR_PROFILER_PATH_64" value="REPLACE_BASE_DIR\agent\vfagent.net.dll" />
<add name="COR_PROFILER_PATH_32" value="REPLACE_BASE_DIR\agent\vfagent.net.x86.dll" />
<add name="COR_ENABLE_PROFILING" value="1" />
<add name="COR_PROFILER" value="{cd7d4b53-96c8-4552-9c11-6e41df8eab8a}" />
<add name="COMPlus_TailCallOpt" value="0"/>
</environmentVariables>
</add>