Saturday 21 December 2013

Deployment of Silverlight App + Silverlight-Enabled WCF Service to Production

Hi All,
While working on one of my SilverLight Project. I have noticed an issue related to it. The Issue was related to deployment of the SilverLight Application which uses WCF Service. When we publish our SilverLight Application XAP file is created in ClientBin folder and we do not get any way to configure End Points. End Points which is combination of ABC i.e. Address + Bindings + Contracts.
It means we need the URL of Business Logic in Address which is in WCF. (If we are deploying the WCF Application on IIS).

For this Problem I researched a lot and found two solutions.
1) Change the URL to a real URL in the  ServiceReference.ClientConfig before your final build.
2) If you already deployed your .Xap file to the server, and you do not want to rebuild it. You can use a WinRar (download for free) tool to extract the  ServiceReference.ClientConfig file out, edit the url, then use the same tool to zip it back to the .Xap file.

If anybody has better approach related to Deployment of SilverLight Applications, Please suggest because now a days we are working on lots of SilverLight Applications.

No comments:

Post a Comment