Summary

This article describes how to configure adTempus so that user scripts written in the .NET languages (such as VB.NET and C#) can use language features and assemblies from version 4.0 of the Microsoft .NET Framework.

More Information

adTempus version 3.x and earlier is built using version 2.0 of the .NET Framework, and any .NET scripts run by adTempus therefore also use version 2.0. If you want to run scripts that use features from later versions of the .NET Framework, you must update the adTempus runtime configuration files so that the newer version of the Framework will be loaded.

First make sure that version 4.0 of the .NET Framework is installed on the computer where the adTempus service is running, and on any remote computers where you are running the adTempus Console.

Next you must configure the adtjobhost program, which is responsible for executing the scripts. Edit the file "adtjobhost.exe.config" found in the adTempus program directory on the adTempus server (the computer where the adTempus service is installed and where jobs run). You can edit this file using a text editor such as Notepad.

In this file, locate the line at the end of the file that reads

</configuration>

Immediately above this line, insert the following text:

<startup><supportedRuntime version="v4.0.30319" /></startup>

Save and close the file.

Next you must configure the adTempus Console so that the correct version of the .NET Framework will be used for the script editor in the Console. Edit the "adtconsole.exe.config" file, also found in the adTempus program directory, and make the same change. After saving the file, you will need to close and restart the adTempus Console if it was running, in order for the change to take effect.

Note: If you are running the adTempus Console on any remote computers, you will need to update adtconsole.exe.config on those computers as well.

It is not necessary to restart the adTempus service for the configuration changes to take effect.