Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight in aspx page not loading

I have developed a simple Silverlight control. I created this by using the Silverlight application project template in VS 2008, adding a test page to my existing website.

Now, my control works perfectly in the auto-generated aspx, where I have now got it functioning as required. However, when I try to put the control in a new page it does not load. Debugging suggests that the code is all executing, however the UI I expect to see simply isn't appearing.

I tried this initially in a content page using the correct master page for my site layout, and then just in a standard ASPX which doesn't use MPs...same problem.

Has anyone else experienced anything similar? Am I missing something simple!?

So frustrating, any help appreciated!

like image 686
SiC Avatar asked Oct 27 '22 05:10

SiC


1 Answers

You can use Firebug or Internet Explorer's developer toolbar (and Fiddler) to see if the xap file is being requested and the rendered object tag has the proper size. If using the control check for any JavaScript errors.

like image 107
Atanas Korchev Avatar answered Nov 15 '22 12:11

Atanas Korchev