Skip to main content

Microsoft Silverlight

Answered Question How to publish the silverlight beta application RSS Feed

(0)

xsdf
xsdf

Member

Member

146 points

222 Posts

How to publish the silverlight beta application

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. 

 

************************************
To be or not to be, it's not a question ,it's life.

johnnystock
johnnystock

Contributor

Contributor

2295 points

362 Posts

Silverlight MVP
Answered Question

Re: How to publish the silverlight beta application

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.

John Stockton
Microsoft Silverlight MVP and RIA Developer at Ascentium
Co-Author of Silverlight 2 in Action

xsdf
xsdf

Member

Member

146 points

222 Posts

Re: Re: How to publish the silverlight beta application

 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. 

************************************
To be or not to be, it's not a question ,it's life.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities