Skip to Content
avatar image
Former Member

VB Net 2013 Server without app.config

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 30, 2014 at 11:23 PM


    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:

    SAP .NET Connector - storing connection details in SQL Server

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

    Regards, Hynek

    Add comment
    10|10000 characters needed characters exceeded

    • 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,