SkipFire
asked on
Embedding Silverlight in an existing application
I have an existing ASP.NET 3.5 application and I have a Silverlight 2 application that I want to use in that existing ASP.NET site. The test page that was created when I made the silverlight project works fine, however when I put the div and asp:Silverlight tag into another page on my site it stops working. I do not get any errors, the silverlight app just never loads up. My site uses master pages and the master page has my ScriptManager object so there is no script manager in the same aspx file as the Silverlight control, however I did try putting a ScriptManagerProxy on the page and that did not help, I also tried removing the script manager from the master page and putting it in the ASPX along with the asp:Silverlight control, but still no success.
How can I get my silverlight application to load in my existing site that uses master pages?
Thanks.
How can I get my silverlight application to load in my existing site that uses master pages?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This isn't a solution - I'm having the same problem. I do get IE javascript errors via the little hazard icon in the lower left corner of IE7 when I try to run my aspx page with a masterpage and a Silverlight object. Do you get javascript errors as well?
==
Error: 'Sys.WebForms.PageRequestM
==
Error: 'Sys.UI.Silverlight' is null or not an object
==
Error: 'Sys.Application' is null or not an object
==
Error: 'Sys.UI.DomEvent' is null or not an object
These errors lead me to believe that the correct libraries are not being loaded by the client. This same aspx page and Silverlight app run fine if I use the aspx page as a stand-alone page (i.e. no MasterPage).