03-01-2017 05:52 AM
Lately I have being posting a lot of questions. Still I will keep reaching to you guys because I am new to SAS.
This time is about Custom Tasks I had to develop some new features on some SAS Enterprise Custom Tasks. But when I tried to install this custom task it doesn't appear on my Enterprise Guide.
I activated the logging on SAS Enterprise Guide and the error that is giving me is this:
System.Exception: Add-In is an invalid file type.
at SAS.Shared.AddIns.Management.AddInRegistry.LoadElementFromAssembly(String targetAssembly)
at SAS.Shared.AddIns.Management.AddInRegistry.LoadElementFromAssembly(String targetAssembly, Boolean fullPath)
at SAS.Shared.AddIns.Management.AddInRegistry.AddFromAssembly(String FileSource)
at SAS.Shared.AddIns.Management.AddInRegistry.AddFromDirectory(String DirectorySource, String SearchPattern)
Due to policy from the company I cannot publish the entire log.
Can anyone help me with is issue?
FileDescription: SAS Enterprise Guide 5.1
Product: SAS Enterprise Guide 5.1
ProductVersion: 5.1 (188.8.131.5244) Hot fix 23
Thanks for the help.
P.S.: I know I am yet to put a right answer for the last question that i made, but the version upgrade is yet to happen.
03-01-2017 02:49 PM
03-01-2017 07:18 AM
03-01-2017 07:49 AM
Hi @bernardorosario - this is a custom task that you built? Is there any way that you can share the Visual Studio source project with us (or me)? I'd be happy to take a look. If you don't want to share it on the forum, you can attach it to a private message to me.
If building custom tasks is going to be part of your job, I recommend my book Developing Custom Tasks for SAS Enterprise Guide. I also have a course that is offered periodically -- next session is scheduled for the end of March in NYC. (I realize that you're probably in Europe and that doesn't work for you...)
I also have a 37-minute walkthrough on the process here, as part of the Ask the Expert series.
03-01-2017 09:13 AM
I think i found the problem i was compiling my code in a computer without SAS so it give some warnings that and I didn't pay attention to it. When i switch to a machine with SAS everything was fine.
Sorry for being a "noob" in this process of Custom Task building.
I will have to buy your book to better understanding on the matter.
Thanks guys for your help and i will count on you guys for any question that i might have thanks again.
PS: About the code I cannot share it, the company is very strict about this.
03-01-2017 10:00 AM
If your task uses the standard/published APIs, you can download just the DLLs you need to reference from this post. You don't need SAS or SAS Enterprise Guide to be installed on the development machine in order to build your task.
03-01-2017 02:30 PM
I use the standart API, but the code that was given to me also uses one more SASLibrary being that one the SASInterop reference.
But as I said I am new to this so I don't know if this library has some impact on what I said earlier.
Thanks for the help and the time spent with me.
03-01-2017 02:49 PM
Need further help from the community? Please ask a new question.