Ive just started using WCF with silverlight and its working fine. But one thing that is bugging me is the address of the .svc. Why is it statically set in the .config?
Would it be possible to set it when creating an instance of the proxy class? And if so, is there a way to set it to the current address?
Our software will be deployed on many different domain and we cant change the config every time. The svc will always be in the same domain as the silverlight page.
Thanks.
Ive just started using WCF with silverlight and its working fine. But one thing
Share
You can specify a custom ServiceHost with the factory parameter in your .svc file then you can configure the endpoint however you need from there in code, including a relative address.
see:
http://msdn.microsoft.com/en-us/library/aa395224.aspx
http://msdn.microsoft.com/en-us/library/system.servicemodel.servicehost.aspx
Also see this answer