Special steps for installing the custom tasks that you download

This post was kindly contributed by The SAS Dummy - go there to comment and to read the full post.

Recent versions of SAS Enterprise Guide (version 5.1 and later) use Microsoft .NET 4.0, which enforces additional security requirements before running custom task DLLs that you download from the Web, including those that you download from support.sas.com. Because these task DLLs are downloaded from the (big and scary) Internet, the Microsoft .NET runtime does not automatically “trust” them as it would trust a properly installed application. To enable the task to run, you must first “unblock” the file using Windows Explorer.

  1. Using Windows Explorer, browse to the assembly (DLL) that you downloaded from the samples and extracted from the Zip file.
  2. Right-click on the DLL file, and from the shortcut menu, select Properties.
    The Properties dialog box opens.
  3. On the General tab, click Unblock to indicate that this DLL is trusted
    (Note: the Unblock button will not appear if the assembly is already unblocked and available.)
  4. Click OK to close the Properties dialog box.

If the DLL is blocked when you try to add it in SAS Enterprise Guide, you might see a message such as the following, and the task will not appear in the Tools->Add-Ins menu:

Unable to load program .... 
Could not load file or assembly 'SAS.Tasks.Examples' or one of its dependencies

You can read more about this security feature and behavior in this Microsoft Knowledge Base article. If you build your own custom tasks (for example, by using the example projects and source code), you will not need to unblock the DLLs as you build them.

Related articles

Custom tasks for SAS Enterprise Guide: Q & A
Introduction to SAS Custom Tasks [SAS Talks webinar]
Custom Tasks for SAS Enterprise Guide using Microsoft .NET

tags: .net, SAS custom tasks

This post was kindly contributed by The SAS Dummy - go there to comment and to read the full post.