Archived Forum Post

Index of archived forum posts

Question:

Type 'Chilkat.sftp' is not defined

May 29 '15 at 12:17

I am trying to work on a project I previous compiled successfully, now when I try to build it, I get errors like this. Type 'Chilkat.sftp' is not defined. I confirmed my references and the correct .dll is referenced and present. I also verified that ChilKat is selected in the imported namespaces as well. What do I need to do to resolve this?


Answer

Is this ActiveX? If you were previously using old Chilkat ActiveX's, but are now using the new ActiveX (9.5.0.*), then pay close attention to the "Object creation" information in each reference doc web page, such as here: http://www.chilkatsoft.com/refdoc/xChilkatSFtpRef.html


Answer

No, this is not ActiveX, it's vb.NET. This is a previous project that I have used before. I was asked to update it and add some features to the program. when I open the project everything looks good, however; when I try to run it or build it, it fails with 3 errors.

Type 'Chilkat.sftp' is not defined. Type 'Chilkat.SshKey' is not defined Type 'Chilkat.FileAccess' is not defined.


Answer

Found the Problem, I didn't read the complete output log. This is what i found. C:Program Files (x86)MSBuild12.0binMicrosoft.Common.CurrentVersion.targets(1697,5): warning MSB3274: The primary reference "ChilkatDotNet45" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".

Correcting my .NETFramework resolved this issue. Thank you for your input.