March 27, 2026 at 6:54 pm
Hi , i installed winscp on my pc, added it to GAC thru vs (i think a developer script) on my pc as well, and added a reference to it while editing a c# script in vs in the pkg i was developing. It might have been on 2 c# scripts.
I just deployed the pkg to our production dw server, specifically to the catalog. I think i can muddle thru the winscp install there using default c: drive as a target. my friend thinks the .dll reference(s) from c# were deployed automatically, im not so sure. Is that how it works? Or do i need to add references again?
im most concerned about adding winscp to GAC there on the prod server. My only experience is doing that thru vs, specifically a developer script window i think. For starters vs isnt installed there. I could probably install vs there if i had to. does the community have any advice? For the moment i cant imagine installing winscp to GAC there remotely (from my pc) but i'd have to look at the command again.
March 27, 2026 at 10:55 pm
Hi Stan,
I don't believe the .dll references in your script and GAC entries will be deployed along with your package deployment. That's something you'll have to set up on the prod server to mirror your desktop.
I'd recommend doing a server backup like a system restore point before installing WinSCP, then put the .dll into the GAC
Try it on a DEV server first though. These .dlls are prone to Windows OS patching especially when it comes to .Net framework security patches and updates. Good luck!
Tung Dang
Azure and SQL Server DBA Contractor / Consultant
SQL Brainbox - SQL Server Monitoring Tool
March 28, 2026 at 12:54 am
Hi , i installed winscp on my pc, added it to GAC thru vs (i think a developer script) on my pc as well, and added a reference to it while editing a c# script in vs in the pkg i was developing. It might have been on 2 c# scripts.
I just deployed the pkg to our production dw server, specifically to the catalog. I think i can muddle thru the winscp install there using default c: drive as a target. my friend thinks the .dll reference(s) from c# were deployed automatically, im not so sure. Is that how it works? Or do i need to add references again?
im most concerned about adding winscp to GAC there on the prod server. My only experience is doing that thru vs, specifically a developer script window i think. For starters vs isnt installed there. I could probably install vs there if i had to. does the community have any advice? For the moment i cant imagine installing winscp to GAC there remotely (from my pc) but i'd have to look at the command again.
one option is to NOT use the GAC for this - see documentation of how to do it by placing the DLL on a diff location.
https://winscp.net/eng/docs/library_ssis
March 30, 2026 at 11:30 am
thx Tung, that was already tried in dev as i wrote in the post.
how would you go about adding .dll refs to a c# script in ssis once its in the prod catalog?
I think you are right about gac but im wondering about your .dll ref answer.
March 30, 2026 at 12:15 pm
thx frederico, im kind of intrigued more by the exec path example (example 1 as opposed to the gac workaround in example 2 of your link) only because the code is much more similar to what i tested with.
my gut says its equivalent to setting .dll references when editing a script task. Tell me if you think im wrong.
Anyway, i'm even more tempted now to temporarily install vs on the prod machine because...
March 30, 2026 at 3:03 pm
i'm not sure how this is going to go but i added winscp to gac on the prod server, imported the already deployed pkg, edited both c# scripts and see the refs to winscp already there. Not sure what that means but built both and got the build succeeded message and deployed the pkg after saving. we'll see in due time if the pkg runs on prod from sql agent. not being a .net guy, i dont know how this is going to turn out.
one of the reasons im skeptical is because i always read about strongly named .dlls. i dont know if that's a ref thing, a gac thing or both. but if refs follow the pkg in deployment from dev to the prod cat, its hard to believe a valid strongly named ref tagged along because its a deployment between 2 different environments and winscp wasnt even installed on prod before the first deploy from dev. however it was before the deploy mentioned above in the first paragraph of this post.
April 3, 2026 at 2:36 pm
i just ran the pkg from sql agent. I dont want to guess especially since you'd think strongly named assemblies etc should have been in play. If anyone in the community knows how/why this worked pls share. Is it possible GAC overrides the strongly named thing and refs? I s it possible importing , opening and building allowed .net to find/ref the assemblies again? I suspect the directory where winscp was installed on prod was the same name as where i installed on my pc.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply