Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Sharepoint Server object model is not working with WCF

$
0
0

Hi,

   I am having the silverlight application which needs to get details from Sharepoint site. In order to consume the data from site, i need to create WCF services to get the data from site and needs to return to Silverlight application. So, i have decided to create a WCF service application , and referenced Microsoft.Sharepoint DLL. When i am trying to expose the SPSite object, it is throwing the error as "The Web application at http://XXX could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."But if i am trying the same way in Console application, i am able to expose the objects. Please let me know why it is not working in WCF services. Please find my WCF project settings : Target Framework :3.5, Platform : Any CPU / X64.


Balaji

Viewing all articles
Browse latest Browse all 11508

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>