Problem: When you attempt to connect to an SAP server from the Visual Studio development environment, you may see Open file C:\WINDOWS\sapmsg.ini failed, which indicates that the file is missing, and you cannot connect to the SAP system.
Solution:
Add sapmsg.ini to your Visual Studio environment:
-
In C:\WINDOWS\, use a text editor to create a file called sapmsg.ini file, and insert this line:
<SAP_System_Number>=<IP_Address>
Where:
-
SAP_System_Number is the value of the SAP system number connection property (jco.client.sysnr), and
-
IP_Address is the IP address of the Unwired Platform machine.
-
Using a text editor, open C:\WINDOWS\system32\drivers\etc\services, and add a service that has this format:
sapms<SAP_System_Number> <Message_Server_Port>\tcp
For example:
sapmsC27 3602\tcp
-
Restart the system.
-
Verify that group public is enabled for the SAP application. See
your SAP documentation.