Applies to Product – Dynamics 365 Lifecycle Services
What’s happening?
Customers encounter an error indicating that the type or namespace name 'Renci.SshNet' could not be found during package creation in Dynamics 365. This issue may also manifest as the "Manage NuGet packages for Solution" option being grayed out in Visual Studio.
Reason:
The underlying cause of this is related to a conflict between the version of Renci.SshNet installed on the system and the version used by the Toolkit, or the Renci.SshNet.dll has not been loaded into the Global Assembly Cache (GAC). Additionally, the problem may stem from a custom class that is not properly referenced.
Resolution:
- Review the project references to ensure that the correct version of Renci.SshNet is installed and referenced in the project.
- If the error logs indicate a System.IO.DirectoryNotFoundException, abort the current package deployment and reapply the same package.
- For further guidance on resolving missing references errors, refer to the documentation available at Microsoft Documentation.
- If the issue persists, consider scheduling a remote session to analyze the problem in detail.
