02-24-2015 03:37 PM
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.
02-24-2015 04:00 PM
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?
02-24-2015 04:21 PM
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.
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.
02-24-2015 05:21 PM
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):
You can still use VS2013 to create tasks for SAS Enterprise Guide 4.3 -- just make sure that you target .NET 3.5.
03-13-2015 03:02 PM
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?
03-13-2015 03:30 PM
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:
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!
04-17-2015 05:03 AM
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.
04-17-2015 07:40 AM
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.
04-17-2015 08:20 AM
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.
Need further help from the community? Please ask a new question.