BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi Chris and everybody,

I am developing a custom task for EG4.1 with VB.NET (VS.NET 2003), I am not able to add SAS.EG.Controls in the ToolBox, I am getting the error:

"The object with ID 11 implements the IObjectReference interface for which all dependencies cannot be resolved. The most likely cause is two instances of IObjectReference that have a mutual dependency on each other"

I am getting this error after doing the following:
Menu > ToolBox to display the ToolBox; RightClick on Windows Forms Tab > Add/Removes Items...> click Browse... > navigate to select C:\Program Files\SAS Institute\Shared Files\BIClientTasks\4\SAS.EG.Controls.dll

Note1: My project already references the following items:
Adodb; Sas.eg.controls; Sas.interop.sas; Shared.addins; System; System.data;
System.drawing; Windows.forms; System.xml

Note2: As I also have EG3 installed, if I attempt to add ...\BIClientTasks\3\SAS.EG.Controls.dll, no error is generated.

Thanks for any help.

Maurice
3 REPLIES 3
prholland
Fluorite | Level 6
Can I add that I'm getting the same message, except that I'm seeing "ID 243" instead of "ID 11" in the error message?

I wouldn't have seen this, but I thought I'd redevelop an existing EG3 Add-in to use EG4.1 controls to circumvent SN-017595!

........Phil
ChrisHemedinger
Community Manager
I apologize for the delayed response. Please try these steps:

How to Add SAS-supported controls to the Visual Studio toolbox for use with SAS Enterprise Guide custom tasks

1. Create a new project using the SAS EG AddIn 4 template (available from http://support.sas.com/eguide)

2. Add a reference to the project: C:\Program Files\SAS\Enterprise Guide 4\SAS.EG.Controls.dll
You'll see a message similar to the following:

In order to add this reference, the directory 'c:\program files\sas\enterprise guide 4' will be added to the project's ReferencePath property. This will change where the following references are found: SAS.Shared.AddIns.

Do you want to continue and add the reference?

Select Yes.

4. Right-click in Toolbox area, select Add/Remove Items…

5. In Customize Toolbox window, select Browse…

6. Navigate to C:\Program Files\SAS\Enterprise Guide 4\SAS.EG.Controls.dll and then select Open

This should add many controls to the .NET Framework Components tab, with checkbox states selected, from the SAS.EG.Controls namespace.

Note that only the SAS Variable Selector, SAS Format Selector, and SAS Color Selector are documented and supported for customer use.

Chris
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
prholland
Fluorite | Level 6
Chris,

Your suggestions do allow the components in SAS.EG.Controls.dll to be added to the Toolbox, and my EG4 Add-In compiles and adds into EG 4.1. However, after I've selected the input data for the Add-In I get the following error window in EG 4.1:

Application Error
System.IO.FileLoadException
The located assembly's manifest definition with name 'SAS.EG.Controls' does not match the assembly reference.
--------- Technical information Follows ----------
[SAS.EG.ProjectsElements]
The located assembly's manifest definition with name 'SAS.EG.Controls' does not match the assembly reference.
--------------------------
at SAS.EG.ProjectsElements.EGTask.Show(Win32WindowOwner)
at SAS.EG.SEGuide.MainForm.AddTask(Guid taskGuid, Element inputData, Boolean blsWizard)
at SAS.EG.SEGuide,MainForm.LaunchTask(Element target, Giud taskGuid, Boolean blsWizard)
etc....

Is this due to EG 4.1 looking in ...\SAS\Shared Files\BIClientTasks\4\, but the compiled reference is from ...\SAS\Enterprise Guide 4\, and it is different?
If so, then why are they different?

...........Phil

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1377 views
  • 0 likes
  • 3 in conversation