cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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!

Greetz,

Sven

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks a lot for the solution!