Sharepoint with silverlight app
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.
Justin,
There are few steps you need to follow to load the Silverlight XAP in sharepoint.
- You need to create RIA service as an independently hostable web application (.svc) Follow the guidelines available here
- Once you have the solution ready. Host service on IIS and make sure that it is functioning correctly.
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"]);
Load the xap on sharepoint site and in the configuration section provide links to .svc services.
精彩评论