I am trying to figure out how to open and close a ServiceHost object several times in a self-contained WCF application:
what i did: 1. create a ServiceHost object
- Open () call
- the call is closed () so far so good.
- call Open () again, exception: cannot access the remote object because CommunicationObject is located, it makes sense.
How can I reopen ServiceHost in this case without recreating this object again (rather, I recreated CommunicationObject, if possible).
Thanks in advance.
source
share