I've got a WCF service located on IIS. I've got a smartclient application which refers to this as WCF service through endpoints defined in application.config file.
Now after i publish this application by using this configuration, IT throws the best stating that no endpoint is listening at localhost.
How do i allow it to be dynamic. By dynamic I am talking about Basically update the endpoint in application.config file the applying should get that url rather than the url that the applying was released with.
I recall i possibly could get it done in webservices. Help.
Your application.config would definitely contain something similar to:
<client>
<endpoint name="...."
address="........"
Look into the address - this is the URL you are attempting to connect with. You have to supply the server's address and port and path - no localhost, obviously.
<client>
<endpoint name="...."
address="http://yourserver/yourVirtualDir/YourService.svc"
Which should have the desired effect.
Marc