Configuration File Modifications
In the Enterprise Edition, a button can be used only to open a file on the Windchill Risk and Reliability application server. After selecting Execute on server, the system administrator configures the batch or executable file to run as described in Button Event Page. The system administrator then must modify the RiskAndReliability.Service.LongRunningTasks.exe.config file to indicate that this file is allowed to run on the server.
1. Go to C:\Program Files\PTC\Windchill Risk and Reliability 12.0\Windchill Risk and Reliability and open this configuration file.
2. Locate the following lines, which are very near the top of the file. They specify the name of the section in which you indicate the files that are allowed to run on the server.
<configSections>
<section name="MagicButtonWhitelistSection"
type="Relex.BusinessObjects.MagicButtonWhitelistSection, WindchillRiskandReliability.Core.BusinessObjects" />
</configSections>
3. Find this section, which is at the end of the configuration file.
<MagicButtonWhitelistSection>
<MagicButtonWhitelist>
<!-- in order for a form button that has an 'Open a file' button event with 'Execute on server' to execute, the EXACT filename must be listed here. For example: -->
<!-- <add name="C:\path\test.exe"/> -->
<!-- you can add as many entries as necessary. filenames are not case-sensitive -->
</MagicButtonWhitelist>
</MagicButtonWhitelistSection>
4. Follow the instructions for adding entries for buttons that are to open files on the application server. For each entry, you must include the full path to the executable file, just as it appears in the button properties.