Do not publish to ClientBin – Silverlight – The Missing Notes

(This is a series of unspoken Silverlight best practices, designed to avoid specific pain points when developing Silverlight applications. Refer to this URL http://www.redmountainsw.com/wordpress/?p=1270#list for a complete listing).

Silverlight .xap files are by default published to the ClientBin folder on a website. When Silverlight talks about relative URLs, e.g. “/Files/flower.jpg”, it references “/ClientBin/Files/Flower.jpg” (You can confirm this with Fiddler).

To avoid confusion, publish the xap file to the / folder.

Reference

Shawn Wildermuth – Silverlight and Site of Origin


About this entry