cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Connector 2 - Could not load file or assembly 'SAP

Former Member
0 Kudos

Hi all,

I've recently installed SAP .NET Connector 2 and have been developing a basic C# web form to interrogate the customers table. I have created all my code and done a successdul build. However, when I try to run the web form I get the following error:

<i>Could not load file or assembly 'SAP.Connector, Version=2.0.0.0, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. The system cannot find the file specified.</i>

The SAP.Connector.dll and SAP.Connector.Rfc.dll files are on both my development machine and the server I am deploying the project on. Any ideas ?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Fixed it myself. In the solution browser, expand the reference section and in the properties for the SAP.Connector and SAP.Connector.Rfc set the 'Copy Local' parameter from False to True. This fixes the issue.