login about faq

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?

asked May 29 '15 at 00:21

omnicrom's gravatar image


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


answered May 29 '15 at 09:20

chilkat's gravatar image

chilkat ♦♦

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.


answered May 29 '15 at 12:03

omnicrom's gravatar image


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.


answered May 29 '15 at 12:17

omnicrom's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 29 '15 at 00:21

Seen: 3,610 times

Last updated: May 29 '15 at 12:17

powered by OSQA