?
Solved

the type or namespace WinScp name could not be found

Posted on 2012-03-15
2
Medium Priority
?
1,005 Views
Last Modified: 2012-03-26
I downloaded winscp.dll and registered it with .net. See me command and the output copied below. When I try to use Winscp  (using WinSCP;) in my c# code I get error: the type or namespace WinScp name could not be found
What Am I missing?

command used to register the assembly:
C:\Users\Dkaur>%WINDIR%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe "C:\Program Files (x86)\WinSCP\WinSCP.dll" /codebase /tlb

Ouput:
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.5420
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

Types registered successfully
Assembly exported to 'C:\Program Files (x86)\WinSCP\WinSCP.tlb', and the type library was registered successfully
0
Comment
Question by:patd1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
sarabande earned 2000 total points
ID: 37741799
did you deploy the assembly to global assembly cache (GAC)?

to deploy assembly in GAC

go to

Windows Start
   - All Programs
       - Microsoft Visual Studio 20xx
             - Visual Studio Tools
                - Visual Studio 20xx Command Prompt

type

 gacutil -i "path_of_dll"

Sara
0
 

Author Closing Comment

by:patd1
ID: 37768843
Thanks, will test later.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question