Question:
I have the following enviroment:
Windows 2000
Microsoft .NET Framework 1.1
Microsoft Visual C# .NET
SAP .NET Connector 2003 (1.0)
SAP R/3 46C with kernel 46D
I followed the step-by-step SAP Tutor tutorial of CustomerDemo2.
I had problem with adding SAPLogon form, but I could solve it based on OSS note 506603 point 3.
When I run the .NET application I don't get the Logon screen, the search screen immediately. I don't get any result back since the logon fails.
( in line proxy.Connection = SAP.Connector.SAPLoginProvider.GetSAPConnection(this);
)
I set SAPLogon1.aspx as start page, now I get the logon screen.
I couldn't logon if I leave the default language as 'en'.
SAP.Connector.RfcException: Language 'en' not available at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPLoginProvider.OpenSAPConnection(Page p, String connstr, Boolean persist) at CustomerDemo2.SAPLogin1.Login_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\CustomerDemo2\SAPLogin1.aspx.cs:line 91
If I type it with capital, then I get the following error message:
SAP.Connector.RfcLogonException: Open file 'saprfc.ini' failed: 'No such file or directory' at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPLoginProvider.OpenSAPConnection(Page p, String connstr, Boolean persist) at CustomerDemo2.SAPLogin1.Login_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\CustomerDemo2\SAPLogin1.aspx.cs:line 91
I couldn't find any relevant OSS note. I have a tested saprfc.ini file, however when I copied to the following locations, I still get the same error message:
c:\inetpub\wwwroot\CustomerDemo2
C:\Program Files\SAP\SAP .NET Connector for VisualStudio 2003
C:\Documents and Settings\...\Visual Studio Projects\CustomerDemo2
Already tried several times to create new .NET application from scratch, but I got always the same error message.
Since I'm an ABAP programmer, I'm not familiar with .NET enviroment....I hope only a small stupid configuration is missing....
Any idea?
Thanks,
Incho
Answer:
I noticed that I installed version 1.0.1.
So I downloaded version 1.0.2 and installed it. Now I don't get the logon screen, but if I set it start page I don't get this error message...I get the another one, probable I didn't set the what the next page would be.
If I call the WebForm1.aspx page I don't get back the result.
If I go manually to SAPLogin1.aspx and then to WebForm1.aspx, then it works
Is there a way to automate it?
Can I set Navigation somehow (like in BSPs)?
Thanks,
Incho
Answer:
Apparently this is due to not having all the logon details in the right places - i replaced the logon screen with a sap destination object which loged me on straight away.
Try checking the settings in the config.xml file.\
If you do work it out - please add the answer here as i know many people have had the same problem.
Cheers
Jon