Sharepoint with silverlight app


Problem:

I am new to Sharepoint. I wrote a simple RIA MCF silverlight app which runs all the queries right on my server. Now I tried make it available on a Sharepoint testing site. I loaded the xap file but Sharepoint throws me tons of load operation exceptions when it tries to load the app, apparently having problems with the EDM in the app. What do I need to do here? Is the xap the only thing I need to load on the shared documents folder? Thanks.


Solution:

Justin,

There are few steps you need to follow to load the Silverlight XAP in sharepoint.

  1. You need to create RIA service as an independently hostable web application (.svc) Follow the guidelines available here
  2. Once you have the solution ready. Host service on IIS and make sure that it is functioning correctly.
  3. Configure the .svc in the web.config of the hosting web application and access the same in your silverlight application as below

    new LoggingContext(new Uri(ConfigurationManager.AppSettings["LoggingServiceUrl"]);

  4. Load the xap on sharepoint site and in the configuration section provide links to .svc services. Configure Other settings of the silverlight web part to point to the service (.svc) link

Recent Tips

  1. What's the best way to write robots.txt for github pages using multiple repos?
  2. Biopython: Cant use .count() for biopython
  3. How can I find out the token balance of an address?
  4. ref value is undefined in vue (modal, textarea, $refs)
  5. Azure - HDInsight Hbase Data Insertion Failed
  6. SignalR overwriting OnConnected(), OnDisconnected()
  7. DatePickerDialog displays with two borders
  8. "type 'double' is not a subtype of type 'int' in type cast" error in flutter. What should i do?
  9. hiding the autocomplete list when user click outside the textbox is not working as expected
  10. JSF IceFaces basic problem with redisplaying input value
  11. How to validate material ui TextField in reactjs?
  12. Go and MongoDB connection won't work with panic log "no reachable server"
  13. WordPress Posts Pagination Not Working
  14. F# sprintf won't print in interactive console
  15. Spring Integration get FTP files recursively with outbound-gateway
  16. Jade mixins not getting working from external file
  17. Can not access defined exports from the webpack bundle?
  18. Completely new to Node.js - API Programming
  19. Formatting Compare-Object Ouput
  20. Add dynamically added textbox value from User Control to main form
  21. Create a ByteBuf in Netty 4.0
  22. Is it possible to do computation before super() in the constructor?
  23. Q-learning Updating Frequency
  24. Wrong reload order when using Gulp and browserSync
  25. I use hugo build static page. But don't have content
  26. How to change background color and set bar colors based on conditional formatting in VBA?
  27. Problem when comparing two numeric values in SAS
  28. Is ACE reactor timer managment thread safe?
  29. Why Express res.render dumps the render output (EJS template) in console?
  30. Define generic typescript sort function of a certain type