cancel
Showing results for 
Search instead for 
Did you mean: 

VB Net 2013 Server without app.config

Former Member
0 Kudos

Hi to all!!

Im developing a VB Net 2013 SAP Server with NCO 3. I configured the RFC Server in the VB app with de APP.CONFIG file, but with this technique the connection is harcoded. The problem is that I need to bring to the user the possibility to select values for parameters as GWHOST, NAME, GWSERV and PROGRAM_ID.

Could anyone give me an example?.

Thanks in advance!!

Marcos Dorrego

Accepted Solutions (0)

Answers (1)

Answers (1)

hynek_petrak
Active Participant
0 Kudos

Hi,

it depends where you would like to get the parameters from. There is a technique to implement a custom IServerConfiguration.

For SQL backend, I made an example on the below link. It's not for server, but for the client IDestinationConfiguration. But that's almost equivalent:

The above code is from an application, that handles some 50+ different destinations, which are regularly updated.

Regards, Hynek

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Hynek's answer is the correct one. Follow his recommendation to implement a IServerConfiguration and register it during startup of the server application. In case of  a server, you need to make sure that it is possible to start it after configuring the parameters.

Best regards,

Markus