locked
LightSwitch SilverLight application within SharePoint RRS feed

  • Question

  • Hi Techies,

    I was planning to create an application with LightSwitch and SilverLight which needs to be deployed in SharePoint 2013. Is this possible? Any suggestion will be very much helpful.


    Arun Kumar Asirvatham


    Saturday, February 9, 2013 7:28 AM

All replies

  • Beth Massi has written about this in her blog:

    Get Started Building SharePoint Apps in Minutes with LightSwitch

    And also made a couple of How To Videos as well:

    #17 - How Do I: Connect LightSwitch to SharePoint Data?

    #18 - How Do I: Save Data from Multiple Data Sources on the Same Screen?


    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    Please click "Mark as Answer" if a reply answers your question. Please click "Vote as Helpful" , if you find a reply helpful.
     
    By doing this you'll help others to find answers faster.


    Sunday, February 10, 2013 1:39 PM
    Moderator
  • Thanks Yann,

    I get your point. Yes we can create a "LightSwitch HTML Client Preview 2" solution and we can achieve the same.

    Is there a provision to mingle SilverLight into LightSwitch and the solution has to be deployed in SharePoint.


    Arun Kumar Asirvatham

    Tuesday, February 12, 2013 10:16 AM
  • I don't have any personal experience creating SharePoint apps as yet, so I can't answer that question, sorry.

    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    Please click "Mark as Answer" if a reply answers your question. Please click "Vote as Helpful" , if you find a reply helpful.
     
    By doing this you'll help others to find answers faster.

    Tuesday, February 12, 2013 2:47 PM
    Moderator
  • Ok no problem, and thanks for your effort in understanding my ideas Yann.

    Arun Kumar Asirvatham

    Wednesday, February 13, 2013 6:52 AM
  • Yes, it is possible to deploy a Silverlight based LS application into 2013, or at least I have done so using Preview 2.  Seemed to work without issue.

    Cheers


    Johnny Larue, http://www.softlandingcanada.com

    Wednesday, February 13, 2013 10:12 PM
  • You're welcome.

    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    Please click "Mark as Answer" if a reply answers your question. Please click "Vote as Helpful" , if you find a reply helpful.
     
    By doing this you'll help others to find answers faster.

    Thursday, February 14, 2013 1:04 AM
    Moderator
  • Thanks for joining us Johnny.

     I just want to clear about the LightSwitch application base which you have developed.  You created a LightSwitch project using the below mentioned step in RED or GREEN?

    LightSwitch new project screen


    Arun Kumar Asirvatham

    Thursday, February 14, 2013 6:37 AM
  • Your question is about deploying a SILVERLIGHT based LS app in the sharepoint store.

    interesting question, I tried it and get following error:

    The package contains the wrong number of relationships for relationship type 'http://schemas.microsoft.com/sharepoint/2012/app/relationships/package-manifest'. Expected: '1'. Actual: '0'.


    paul van bladel


    Thursday, February 14, 2013 11:29 AM
  • Forgot to mention,

    I deployed some weeks ago, a LS sharepoint app, and that works great. But I'm curious as well, how to deploy a plain good old Silverlight-based LS app.


    paul van bladel


    Thursday, February 14, 2013 11:38 AM
  • You got it Paul and thanks for coming.

    Yeah When I tried to deploy SilverLight based LS Application I'm getting the same error. And I created a "LightSwitch HTML Application", I was able to deploy.

    To add it with the above comments, I noted that the output of "LightSwitch HTML Application" is a SharePoint app with extension ".app", but the output of "LightSwitch Application" is a xap file.


    Arun Kumar Asirvatham

    Thursday, February 14, 2013 12:48 PM
  • What I was able to do was deploy the SL Desktop client (Preview 2) into Office 365 as per this link Exception when attempting to connect to SharePoint.

    Johnny Larue, http://www.softlandingcanada.com




    Thursday, February 14, 2013 1:19 PM
  • Hi Johnny,

    Could you get an in browser app working?

    paul.


    paul van bladel

    Thursday, February 14, 2013 1:23 PM
  • That example is running in browser.  Do you mean as a SharePoint web part? 

    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 1:25 PM
  • Yes Johnny, we are in search for a SharePoint deployment web part kind of solution.

    Arun Kumar Asirvatham

    Thursday, February 14, 2013 1:26 PM
  • No, simply a silverlight LS app in brower.

    Can you explain what you did to get this working?


    paul van bladel

    Thursday, February 14, 2013 1:31 PM
  • Ah that is different, but I suspect that is doable as well in SP 2013.

    In my past I was able to deploy XAP files and related RIA Services embedded into SP 2007 with some minor Web config changes and deploying the XAP/Bin as a child Web Site in IIS but then when SP 2010 came along it crushed this side-by-side approach within share point. It's been awhile but I think it had something to do with SP running an older .Net framework 3.5 than WCF RIA Services 4.0 at the time and as such I could not trick run side-by-side versions of .net in SP 2010 as I was able to in SP 2007.

    You might want to try a child site within the same site as your SP 2013 site, then deploy your LS application there.  Then using Fiddler attempt to hit the deployed SL Client to see if you are hitting any service side issues on .net framework miss-match.  

    Running as a Web part should be pretty easy once you are able to get the link to run as you can then create a simple HTML web part and embed the link to the deployed SL default.htm.  Note you may need to edit the SP web.config and as well you will be running under SP security context when you run the SL component because you are hosted within the same SP web site.  At least that's how the SP 2007 worked. Thing is back in those days we used SP authorization within the SL client as well as WCF RIA Service operations.  It was very powerful, as all security was handled by SP.  I am pretty certain this could be also accomplished within LS but would need to test.

    Cheers 


     


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 1:43 PM
  • Hi Paul,

    As I recall, I was originally attempting to deploy an HTML LS app to O365 and as you can read from that thread linked above I was unable to get that to work. I then added a SL DeskTop client to my solution, set the extension to DockShell and set the shell to DockShell, and followed the exact deployment instructions for the html tutorial I was following.  It deployed as an O365 application which I was able to run. So nothing special.


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 1:50 PM
  • Hi Johnny,

    Thanks for the update.

    Unfortunately, I think that due to poor sharepoint knowledge, I won't get it working.


    paul van bladel


    Thursday, February 14, 2013 1:57 PM
  • One other point of note as to why I suspect this will work is that if you look at the thread from above you will notice that the authenticated user is that of the O365 account I logged into O365.  

    The application is hosted on the O365 site, but is running locally.  As I pointed out, I believe the issue (if any were to exist) will be on the server/service side of the fence.  

    By hosting as a child web site, you are not in violation of any cross-domain policies which would be the only reason the SL client might cause issues. It just needs to be able to mate up nicely with its services which means that all framework assemblies for both SP 2013 and the LS services are running on a compatible version, and this is what you tune within your SP web.config.  As I recall, it was not very much in the way of tweaking in SP 2007 but there was a few things that had to be tweaked.  I bet SP 2013 will not need any changes to web config. 


    Johnny Larue, http://www.softlandingcanada.com



    • Edited by John Kears Thursday, February 14, 2013 2:01 PM
    Thursday, February 14, 2013 1:59 PM
  • I am also not a SP 2013 expert nor would I claim to be the same for previous versions, but I was able to work through a standard SL with back-end RIA Sevices hosted in SP 2007.

    Thing is, if you can deploy the SL desktop as I did in Preview 2, then you should have no issues wrapping that endpoint within a web part. Its running in browser, so you likely do not need to deploy in the manner I mentioned as its already deployed to the site.  

    I am willing to jump on a web cast so we can collectively get this to work.

     


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 2:14 PM
  • When I get a bit of time I will install SP 2013 and play around with a bunch of deployment scenarios to see if I can get this to work, and report back my findings to this thread. I am really back-logged with work so can't promise I will have this completed anytime soon, but will do my best to get something running.

    Cheers


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 2:24 PM
  • Johnny,

    That's very kind of you. Just see what you can do.

    Thanks a lot.


    paul van bladel

    Thursday, February 14, 2013 2:25 PM
  • LOL, I told you its been a while, I just realized that I would need a Windows 2008/2012 Server to install SP 2013 which I do not currently have at my disposal, so the only other way is O365, which as I mentioned I was able to get to work on Preview 2.

    I am going to attempt a quick deployment through Preview 2 to see if I hit the same issues as you do.


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 3:05 PM
  • LOL (part 2) .. I have not been playing with Preview 2 for quite some time but initially I had a ton of issues getting it setup.

    Well as luck would have it, when  just I attempted to create a new project I get this error

    and I unfortunately do not have the time to spend attempting to get Preview 2 working (again) at this time.

    Given the amount of time I spent on Preview 2 already, I had it set in my mind to wait until MS actually released a version that did not cause me so much grief.


    Johnny Larue, http://www.softlandingcanada.com

    Thursday, February 14, 2013 3:18 PM
  • Thanks Johnny, 

    As per your inputs, we need to deploy the LightSwitch application into IIS and refer the same as a subsite?

    Please correct me if I'm wrong.


    Arun Kumar Asirvatham

    Tuesday, February 19, 2013 12:07 PM