Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception has been thrown by the target of an invocation. #1527

Open
kocharR opened this issue Oct 29, 2024 · 1 comment
Open

Exception has been thrown by the target of an invocation. #1527

kocharR opened this issue Oct 29, 2024 · 1 comment

Comments

@kocharR
Copy link

kocharR commented Oct 29, 2024

I have been puzzled by this error while using Renci SSH.NET for my SSIS project. It woks perfectly on machine where ssis is installed. Butwhen deploying to sqlserver machine, I see error "Exception has been thrown by the target of an invocation." Both machine have 4.6.2 farmework installed. Renci.SshNet.dll is added to the GAC filder as well. What am i misisng?

@mus65
Copy link
Contributor

mus65 commented Oct 29, 2024

Please provide the full stacktrace and some details about what your code is doing.

I would not recommend adding SSH.NET to the GAC or using the GAC at all. Even the documentation basically says to not use it:

You should share assemblies by installing them into the Global Assembly Cache only when you need to. As a general guideline, keep assembly dependencies private, and locate assemblies in the application directory unless sharing an assembly is explicitly required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants