cancel
Showing results for 
Search instead for 
Did you mean: 

SAP .net connector 2.0 problem

Former Member
0 Kudos

Hi,

I am facing a problem with Sap .net connector.

Application Description and Implementation:

To give you a brief info about the Application and its current implementations, The application connects to SAP servers and updates many fields from an Excel file. The excel file has many records.The application is developed in .NET Framework 1.1 and VS 2003, for doing operations in SAP we used SAP Auto GUI & SAP .NET Connector.

ISSUE

Intially my application used .net connector 1.03 a proxy was generated which was used to expose the RFC “RFC_READ_TABLE” every thing was fine The implementation worked successfully and we were able to upload some huge records into SAP without any issue.

Later I have installed the latest version of SAP .net conector i.e. version 2.0. Now when I try to upload the excel file to sap servers the application is unable to connect to sap servers and is giving the error message “YOU ARE NOT AUTHORISED TO CONNECT TO THE TARGET MACHINE”. I don’t know why I am getting error after updating the SAP connector. I checked in relese notes also it did’nt helped…….

It would be really helpful if any one can suggest some solutions for the same. Expecting all suggestions and solutions from all!!!

Thank you

Regards

Sreekala

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

@Jitendre

I can see the SAP system in Server Explorer window of VS, but i am not getting any list of functions.

I will explain the entire scenario:-

Originally the application used SAP .net connector 1.03 to connect to the SAP servers and do the required transactions.It was working fine and we were able to connect to sap systems. Later we updated the SAP .net connector to version 2.0. But after updating the .net connector the aplication is unable to connect to SAP servers and we are getting a error message -"YOU ARE NOT AUTHORISED TO CONNECT TO THE TARGET MACHINE".

Now i am facing another problem,when i rolled back again to version 1.03.i.e i again installed the .net connector 1.03 (which was originally working fine) and try to connect to SAP servers through the application i am getting the error message -"YOU ARE NOT AUTHORISED TO CONNECT TO THE TARGET MACHINE".

I don't know why this is happenning as the application is working fine with the version 1.03.

I am seriously strucked,as the application is now not connecting to SAP servers through any connectors(1.03,2.0).

do i need to replace any libraries while changing the version from 2.0 to 1.03?

@Amit

Kindly please explain how to validate the credentials of the user on the target system ?

It would be really helpful if any one can suggest some solutions for the same. Expecting all suggestions and solutions from all!!!

Thank you

Regards

Sreekala

Former Member
0 Kudos

Hi Sreekala,

I want to ask one question. You are saying that "we updated to connector 2.0" Have you only removed .net connector 1.0 and install connector 2.0? Normally, when you have running your application via .net exe, it requires a dll that will use while connecting to SAP. This dll is different for nco 1.0 and nco 2.0.

But, you have said that, I can not get the list of functions. Please create another application and try to get the list of functions. Also, check the username and password fields, maybe these values have changed. Take care while entering password and username to be capital letters.

Former Member
0 Kudos

Hi Gugathan,

You can do the followings to find out the cause of the problem-

1. In VS create a new test application.

2. Open the server explorer and add a new sap server. Specify the credentials.

3. Expand the server and expand Functions below it.

Are you getting list of functions? if not, what error does it displays (write down the complete error).

Apart from that, when you upgraded to Nco ver 2.0, have you changed the references to the correct Nco dlls in VS?

Regards.

Former Member
0 Kudos

Hi Sreekala,

how are you doing ?

please refer to http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/23c80d66d08c4c8c044a3ea11ca90f/frameset.htm

for reference on installation, setup and useage

with respect,

amit

Former Member
0 Kudos

hi all,

Thanks all for your support, as it was very urgent i have used Sap .net connector 1.03 only and after the system restart every thing worked fine. But i am not sure why it did'nt worked for Sap .net connetor 2.0. Thnaks all for your quick response

Thank You

sreekala

Former Member
0 Kudos

Hi Sreekala,

how are you doing ?

have you regenerated the proxies when you upgraded the version of NCo ?

also please validate the credentials of the user on the target system : username, password, client, etc ...

with respect,

amit

Former Member
0 Kudos

Hi Gugathan,

Read this thread it might be of help-

Also can you elaborate a little on the problem.

Are you able to connect to SAP system and is it visible in Server Explorer window of VS? Can you get the list of Functions when you expand the SAP server node in VS?

Regards.