Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Extracting port number from opentext.ini dynamically from .NET web app
Kristy_Shen
Hi,I just built an asp.net web app (C# code) using LAPI for adding bulk users, but recently ran into an issue dealing with the port number for the livelink instance it is running on (needed of course for creating the LL session).Originally, we hardcoded this number, but then realized the port is different across our various instances and on different environements.So, in an attempt to grab it dynmically, we tried an http server request to grab the port number. However it only gave us the http connection port number (80), rather than the socket connection port number (ie 2099) which is found in opentext.iniOne way I can think of getting around this port issue, is by using tunnelling, which would make the port consistly 80. However, it requires the directory path of livelink.exe on the server, which is again not consistent for each instance/environment, and is probably even tougher to retrieve than the port number?So is there another way to grab the port number I want through .net server variables? Or is there an easier way to just parse it out of the actual opentext.ini file, for the instance that the web form is currently running on?Thanks!
Find more posts tagged with
Comments
Louis_Routhier
Could you tell us the topology of your installation? Where is the webform relatively to the Livelink installation?Also, why not simply have the port number set in your web config?