It should take the sites from the sites node in episerver.config. Are all sites configured correctly there?
I'll take a look at them on Monday. Since I upgraded from CMS 5, is there a chance the upgrade script changed them when transforming the new file extracted from the web.config? They seem to work ok otherwise.
When upgrading Enterprise sites the siteDisplayName="" is empty in the site node. Adding text to it solved the problem!
Mark as solved
I have just upgraded an enterprise site from CMS5R2Sp2 to CMS6R1 and further to R2.
All buttons in the upper right corner display their sub menues as they should but the "eye" button for View mode do not display the intended list of site. It works to right click on the page and choose View mode. The browser do not indicate any error with the scripts.