Desktop productivity for business analysts and programmers

SAS Entreprise Guide Custom Task Problems

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

SAS Entreprise Guide Custom Task Problems

Hi guys,

 

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?

 

Versions:


FileVersion: 5.100.0.15244
FileDescription: SAS Enterprise Guide 5.1
Product: SAS Enterprise Guide 5.1
ProductVersion: 5.1 (5.100.0.15244) 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.


Accepted Solutions
Solution
‎03-07-2017 05:30 AM
Community Manager
Posts: 2,691

Re: SAS Entreprise Guide Custom Task Problems

In that case, you might also find this paper helpful: Build your own SAS client app with Microsoft .NET.  You can download SAS Integration Technologies client (which has the SASInterop DLLs) from the SAS support site.

View solution in original post


All Replies
Esteemed Advisor
Posts: 6,646

Re: SAS Entreprise Guide Custom Task Problems

Maybe @ChrisHemedinger can help you with this. He's obviously the custom task wizard, at least to me.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Community Manager
Posts: 2,691

Re: SAS Entreprise Guide Custom Task Problems

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.

 

 

Occasional Contributor
Posts: 5

Re: SAS Entreprise Guide Custom Task Problems

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.

Community Manager
Posts: 2,691

Re: SAS Entreprise Guide Custom Task Problems

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.

Occasional Contributor
Posts: 5

Re: SAS Entreprise Guide Custom Task Problems

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.

Solution
‎03-07-2017 05:30 AM
Community Manager
Posts: 2,691

Re: SAS Entreprise Guide Custom Task Problems

In that case, you might also find this paper helpful: Build your own SAS client app with Microsoft .NET.  You can download SAS Integration Technologies client (which has the SASInterop DLLs) from the SAS support site.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 136 views
  • 3 likes
  • 3 in conversation