Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

File or assembly name SAP.Connector, or one of its dependencies not found

Hello there,

Something very strange is overcoming me when experimenting a little bit with the SAPConnector:

I developped a class that is accessing the proxy-class generated by the SAPConnector wizard and I have put it into a class library. No problems so far.

When I am accessing the class library from into a windows application, no problems are signalized...

However when I try to execute the BAPI from another class library project, I always get the following message:

File or assembly name SAP.Connector, or one of its dependencies, was not found.

I am testing with the following configuration:

- Visual PC 2004

- .Net-framework 1.1 and .Net-framework 2.0

- Visual Studio 2003 and Visual Studio 2005

I tried both SAPConnector 1.0.3 and 2.0, but both return the same message.

Thanks in advance!



Former Member

SAP.Connector.DLL (and SAP.Connector.Rfc.DLL in 2.x) must be available for the project to load. The easiest is to put the two DLLs into GAC (which is the default in NCo 2.x). You can also have them in you application directory. The reason that you don't see a problem if you are using NCo directly is the fact that VS automatically copies directly referenced DLLs into the target directory. This is not (allways) the case for inderectly referenced DLLs.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question