You can either set the endpoint programmatically when creating a client channel inside your COM object, or use app.config.
To install app.config for a COM + application:
If you are using Windows 2000 and your COM + application is server-side, app.config should be called dllhost.exe.config and should be the same as dllhost.exe (% SystemRoot% \ System32).
If you use Windows 2003, you can go to the COM + Activation tab and set the property of the application root directory to the location of your preference, and in this directory you should place a file called application.config (with configuration settings) and another file caller application.manifest with the image below:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> </assembly>
source share