If you take a look at the sequence diagram at the documentation home page http://statlight.codeplex.com/documentation. You should notice 2 things. 1. StatLight starts it's own in memory web server,
and 2 is your test project's xap is re-written to be included into StatLight. This means StatLight is now the "Host" application and your assemblies/other files are just coming along for the ride.
Because your application is now NOT the "host" application AND this rewritten xap is coming from the StatLight web server anything you do to try to talk back to "home base" from within your tests are going to be talking back to the StatLight web server (which
is why you see the "...unknown request was made to the StatLight's web server...".
What you need to do:
- Modify your xap downloader to allow you to configure it's download location.
- When run in a StatLight test - re-configure it's download location to point to the correct location of where to download the xaps.
An option you can consider when making this change is possibly using the StatLight's querystring parameter. You can have your build scripts call statlight passing in some sort of configuration, pull it out of the querystring within your silverlight test
and use that to reconfigure your xap downloader.
Hope this helps you get started.