BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yhz
Fluorite | Level 6 yhz
Fluorite | Level 6

Where can I download SAS.Shared.AddIns.dll?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
CaseySmith
SAS Employee

Actually, EG 7.1 targets .NET Framework 4.5.1.  Try changing your target framework to .NET Framework 4.5.1.


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

View solution in original post

17 REPLIES 17
ChrisHemedinger
Community Manager

This DLL is included with SAS Enterprise Guide and SAS Add-In for Microsoft Office.  You would reference it if you needed to create a custom task using Microsoft .NET.  Since the custom tasks run only in these two products, you'll need one of those products anyway.

You may also need SAS.Tasks.Toolkit.DLL, which contains many of the helper classes that allow you to create custom tasks while writing less of your own code.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
yhz
Fluorite | Level 6 yhz
Fluorite | Level 6

Q1.jpg

Q2.jpg
Hi Chris,

Thanks for your promt response! I am actually going through your book: << Custom Tasks for SAS Enterprise Guide Using Microsoft .NET >>. After I do the Creating a Custom Task Project Using Visual C# 2010 Express, I got all files as shown in the first image. But I don't see the Form. In the second image, it shows the error message on the SasCustomTask1TaskForm.cs code. What I am missing or did copied the .dll files to a wrong place?

Thanks!

Yihong

ChrisHemedinger
Community Manager

Hi,

I'm glad that you're using the book!  A couple of hints:

1. Make sure that your project is targeting the proper release of Microsoft NET.  This has to match the version of .NET that SAS Enterprise Guide is using.

  • .NET 3.5 for EG 4.3 and 5.1
  • .NET 4.0 for EG 6.1
  • .NET 4.5.1 for EG 7.1

Check your Project properties within Microsoft Visual Studio.  See pages 18-19 of the book, if you have it handy.

2. I can't tell from the screen shot whether you are using Visual Studio Professional or the Express Edition.  If Express, see the notes about debugging in my blog post here.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
yhz
Fluorite | Level 6 yhz
Fluorite | Level 6

I am using SAS/EG 4.3 and Visual Studio Express C# 2010.

ChrisHemedinger
Community Manager

You won't be able to use the debugger in the Express Edition 2010.  Microsoft limited that edition to debug only EXEs that you build, and custom tasks are DLLs.  If you can update to VS2013 Express (still free!), then you'll be able to debug per the notes within my blog post (by attaching the debugger to a running SEGUIDE.EXE process):

http://blogs.sas.com/content/sasdummy/2014/02/11/vs2013-express-custom-tasks/

You can still use VS2013 to create tasks for SAS Enterprise Guide 4.3 -- just make sure that you target .NET 3.5.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
yhz
Fluorite | Level 6 yhz
Fluorite | Level 6

Thanks for your advise! I will try VS2013.

Yihong

yhz
Fluorite | Level 6 yhz
Fluorite | Level 6

I have downloaded and installed VS2013. The Screen print shows the detailed ERROR message.

Q3-Error msg with VS2013.jpg

yhz
Fluorite | Level 6 yhz
Fluorite | Level 6


Hi Chris,

I tried more about this and also read about the debugging process. But it appears that this error is even before I can set up debuging. I also noticed that when I try the same process up to page 31 on my home computer (I do have a licensed PC SAS and SAS EG from Drexel University where I teach SAS for many years. The license was expired, but SAS EG frame still start, even though I can not run any SAS code, it can still test the frame display. We switch to SAS Studio for Academic this year.), up to page 31 example Figure 3.2, everything is working. But when I do the same on my company's computer, it gives me the error as shown in above Feb. 25 message shown. When I click the MSDN Help link, it suggest: Move the class code so that it is the first class in the file. then load the designer again. Not sure how to do that. I am not sure if this is enough information for you to give some hint and advise.

By the way, I saw you have an training in Dallas, TX on 4/30-5/1. If I can bring my computer to the training, do you think this is an issue can be resolved?

Thanks!

Yihong

ChrisHemedinger
Community Manager

Yihong,

Since you have one machine where it works and another where it does not, have you tried using a "working" project on the machine where things don't work?

Can you successfully open/build any of the example projects that I've shared?  It looks like (from the error) that your project is not referencing the proper version of Microsoft .NET.  But unless I see the project itself, I can't tell for sure.  If you would like to zip and send me the project that's not working I can take a look:

e-mail: chris.hemedinger@sas.com

And yes, if you catch me in Dallas and haven't yet resolved this, I'll be happy to take a look.  I'm running the Developing Custom Tasks course for the two days after SAS Global Forum.  The course fee has a great discount, so if you've been thinking about taking the course, sign up!

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
larstyne
Calcite | Level 5

Hi!

I have the same problem that the namespace SAS is not resolved. I have the added the reference to SAS.Shared.Addins and SAS.Tasks.Toolkit but I still I dosen't work. I'm using Visual Studio 2013 Community edtion and Enterprise Guide 7.1. I have also changed the target version of the .Net Framework to 4.5.

namespace.PNG

/L

ChrisHemedinger
Community Manager

Lars,

I suggest that you turn "Copy Local" to False for SAS.Shared.AddIns.dll and SAS.Tasks.Toolkit.dll.  Also, it looks like you might have created a Windows Application instead of a Code Library (DLL)?  It's difficult to tell from the screenshot.

Also, are you using the SAS.Tasks.Toolkit class SasTask? You'll find that it saves you lots of coding work instead of implementing each ISASTask* interface separately.  The Visual Studio templates that we provide (visit: http://go.sas.com/customtasksapi) will set that up for you automatically.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
larstyne
Calcite | Level 5

Hi!

I downloaded the Visual studio templates and created a new Project from the template SAS C# Custom Task 4.3, changed the "Copy Local" property to False for the both dll. I also change the Reference Path of my Project to point to the installation of my EG 7.1 but I still get the same error that the namespace SAS cannot be resolved.

/L

ChrisHemedinger
Community Manager

Okay, this time you might need to update the project properties to use .NET 4.5, since you're using EG 7.1.  Have you done that?

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
larstyne
Calcite | Level 5

Yes I have changed the target version to .NET 4.5.

.netversion.PNG

/L

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 2914 views
  • 4 likes
  • 4 in conversation