Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools How to publish the silverlight beta application
2 replies. Latest Post by xsdf on August 4, 2008.
(0)
xsdf
Member
146 points
222 Posts
08-04-2008 10:34 AM |
I have a silverlight beta 2 application ,
use sl2+linq+WCF to read the database from the wcf services.
The wcf services was hosted in the asp.net web application .
My question is how to publish this sl2 application ,then the application can find the correct endpoint address of wcf service ?
For example :
In my development environment ,
set the [endpoint address="http://192.168.0.77/InnerServices.svc"] in ServicesReferences.clientconfig file .
then when I publish it , I changed it to
[endpoint address="http://www.domain.com/InnerServices.svc"]
but the sl2 application looks like can not find the endpoint address correctly.
Does anyone could give me some advice or some vidio tutorial ?
Thanks a lot.
johnnystock
Contributor
2295 points
362 Posts
08-04-2008 1:41 PM |
There are a few ways to deal with this issue but the easiest is if your WCF service is hosted from the same site that hosts your Silverlight application, which it sounds like is your situation. In this case you can specify the URI and endpoint to be used when you create the client proxy as something different than the ones used when you created the reference.
This other thread covers several ways to do what you are looking for.
08-04-2008 9:28 PM |
Yes , you are rigth .
Set the endpoint address when create the client proxy is great.
The setting will always right.
Thanks for your answer and link.