Contact Me

Contact Us
For an informal discussion

Everyone's business is different. Our business is software - ask where we can help.
eMail: john at appsolo.com

Configuring Deployment of Silverlight

Posted on Wednesday, 17th August, 2011

It is sometimes necessary to configure Silverlight differently especially when using WCF services. I read this useful post by Mohamed Ibrahim Mostafa on how to configure the ServiceReferences.ClientConfig XML file to cater for different deployment environments. I found this most useful. As the post suggests the the XAP contains references to the ServiceReferences.ClientConfig XML file. But be warned when you are deploying to a host site the Client Bin folder (from which the XAP file is downloaded) must also have a copy  of ServiceReferences.ClientConfig in it with the same references. Don’t really know why as it should be bundled in the XAP and don’t really know how I would be expected to guess that but I did. You must also remember to rebuild with the changes to the ServiceReferences.ClientConfig file prior to deployment to the Host site.

For local development

 

<configuration>
  <appSettings>
    <add key="Host" value="http://localhost:1420/" />
    <add key="FileServiceEndPoint" value="http://localhost:1420/" />
    <add key="ServerContentFolder" value="LocusPackages" />
    <!--<add key="Host" value="http://Host.com/FTPFileServer/" />
    <add key="FileServiceEndPoint" value="http://Host.com/FTPFileServer/" />
    <add key="ServerContentFolder" value="LocusPackages" />-->

  </appSettings>
</configuration>

For Host deployment 1) rebuild and deploy 2) keep this copy of ServiceReferences.ClientConfig  on the Host Client Bin folder

<configuration>

  <
appSettings>

    <!–
<add key="Host" value="http://localhost:1420/" />

    <add key="FileServiceEndPoint" value="http://localhost:1420/" />

    <add key="ServerContentFolder" value="LocusPackages" />–>       
    <
addkey="Host" value=http://Host.com/FTPFileServer/ />

    <
addkey="FileServiceEndPoint" value=http://Host.com/FTPFileServer/ />

    <
addkey="ServerContentFolder" value="LocusPackages" />

   
  </
appSettings>

</
configuration>

Comments are closed.

latest news

Running a web site hosting SL4 OOB on local host using II express

Posted on Saturday, 4th February, 2012

Free Tools available:
IIS Express free download
Visual Studio 2010 express free download (there might be a licensing issue here)
or Visual Web developer express 2010
SQL Server 2008  Express R2 free download (2010 version is available in RC0 version)
Making sure that IIS Express is installed you can develop against it
So you create your web site and client [...]

Testimonials

Excellent design skills

Posted on Sunday, 2nd May, 2010

We at Taxonomy.ie are happy to be associated with Appsolo and look forward to further work together.

follow me

twitter facebook delicious

AppsoloLtd. VAT No. IE97548691 - Copyright © 2010.