cancel
Showing results for 
Search instead for 
Did you mean: 

using visual studio 2005 with sap.net connector

Former Member
0 Kudos

i have done the following using visual studio 2005/2003

i have built a project in 2003 and add the sap proxy and the objects that i needed. i compiled this(sap6.dll)

i have opened 2005. i have referenced

sap.dll

sapconnector.dll

sapconnector.rfc.dll

now i added

using sap.connector;

protected SAP.Connector.SAPIDocSender sapiDocSender2;

SAPProxy1 proxy = new SAPProxy1();

when i try to compile i get the following error

Error 1 The type 'SAP.Connector.SAPIDocSender' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sap1\93028739\9eb0381d\assembly\dl3\bdc01a3b\009640e4_c576c501\SAP.Connector.Rfc.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\sap1\93028739\9eb0381d\assembly\dl3\44904c2d\00a0a66f_ae93c401\SAP.Connector.DLL' c:\inetpub\wwwroot\sap1\Default.aspx.cs 21 29 http://psbeh192/sap1/

Error 2 The type or namespace name 'SAPProxy1' could not be found (are you missing a using directive or an assembly reference?) c:\inetpub\wwwroot\sap1\Default.aspx.cs 24 5 http://psbeh192/sap1/

i do not know what this means or what to do

please help

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

To solve the fist problem, best put SAP.Connector.dll and SAP.Connector.Rfc.dll into GAC. Make sure that they are referenced without copying to the application folder.

For the second problem, make sure that SAP.dll appears in web.config's "compilation" section.

Answers (0)