Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I change the WCF endpoint parameter programmatically in my silverlight app?
Posted
Updated 23-Dec-09 16:38pm
v2

Best way to get the endpoint address programmatically is to create the Service Client by creating the endpoint. Pass the current url to the endpoint constructor:

<br />
new Uri(Application.Current.Host.Source, "../MyService.svc");<br />


Provided "MyService.svc" is present in the root directory of your web application.

Please vote for it if it helps you.
 
Share this answer
 
>>Error: can't get <asp:silverlight> tag in default.aspx

That has absolutely nothing to do with WCF.

The asp:Silverlight control is deprecated.

Adding Silverlight to a Web Page by Using HTML or JavaScript[^]
 
Share this answer
 
I mean for a sevice. I tried all the way found in have googled. But don't work(((
 
Share this answer
 
If you've tried this[^], then you should edit your post, explain what you've tried, and what happens when you try it ( that is, give us a starting point so we don't tell you to try things you've already tried, and we can instead focus on how you've tried it, and what you're doing wrong )
 
Share this answer
 
I googled and found this[^] if you mean an endpoint on the screen, and lots of hits for endpoint being the destination in WCF. Which did you mean ?
 
Share this answer
 
Error: can't get <asp:silverlight> tag in default.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900