Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How to add a Silverlight page into a SharePoint 2010 Application Page? I know how to deploy the .xap file by adding the SL project as a module in a SharePoint 2010 project and create the .wsp file using VS2010. But you still have to use a SP2010 content page to add the Silverlight webpart to consume it. How to add it to the Application Page.

share|improve this question
add comment

migrated from stackoverflow.com Apr 16 '11 at 22:31

This question came from our site for professional and enthusiast programmers.

1 Answer

Check this guide on how to add an application page to a Visual Studio 2010 / SharePoint project.

This is only available for farm solution projects, not for Sandboxed projects so make sure you are not using Sandboxed. For full list of differences between these two click here.

share|improve this answer
1  
If you need to do it in the Sandbox. Then use this approach to create a page wictorwilen.se/Post/… and just use the Silverlight Web Part and the XAP file in a doc lib (or similar) –  Wictor Wilen MCA MCM MVP Apr 17 '11 at 8:50
    
+1 WOW this is awesome –  Toni Frankola Apr 17 '11 at 9:07
    
The question is NOT how to create a application page. Rather how to add your silverlight code in an application page and being able to debug in a farm based VS project (not a sandbox). I am aware of the approach linked by Toni as well and that's not what I'm looking for. –  Karthik Murugesan Apr 22 '11 at 20:06
    
@wictor - do you think we can just use the object tag generated by the silverlight webpart? But I still won't be able to debug it along with the rest of the SharePoint projects. –  Karthik Murugesan Apr 22 '11 at 20:22
    
Ok, if you want to debug Silverlight code in your SharePoint solution then you need to go into the project properties and select Enable Silverlight Debugging on the SharePoint settings tab. –  Wictor Wilen MCA MCM MVP Apr 22 '11 at 20:45
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.