Building my Silverlight app says 'no webpages found'. What to do?
A silverlight-app (xap-file) always needs to be hosted in a webpage.
The profiler's strategy for locating webpages is constantly being improved. Here is how the
current version locates webpage candidates for a Silverlight-application in directory "dir":
- include files in dir that match *testpage.htm[l], case-insensitive
- scan dir and 3 levels up for project-files *.*proj. For each project do
- if project (or user-settings) specifies a StartPageUrl then use that
- else, include any htm,html,aspx files in project-folder that embeds the silverlight-xap
(by scanning files for tags application/x-silverlight- and asp:silverlight)
- if none are found then just include any htm,html,aspx files that embeds any silverlight-xap at all (using same scanning method)
- repeat step 2 for all projects found in your ...\Microsoft\WebsiteCache\Websites.xml, too
- if above project-scanning-steps finds no files then look for standalone hosting-pages:
- search upwards for the topmost web.config-file; if found then repeat file-scanning-steps 2.2 and 2.3 in its directory
You can enable detailed logging of this
scanning-step in Tools > Profiler troubleshooting ... > "Show details of Silverlight
webpage scanning step". It may help you figure out why the desired webpage is not
found. If you believe everything is allright, and your webpage should have been found,
you're more than welcome to send the build-log and other relevant info (project-file,
directory-structure, etc) to us so we can examine it and use it to
improve the scanning algorithm. Just mail it to support@eqatec.com.