|
Post by relapse666 on Apr 23, 2009 3:42:09 GMT -6
Hi,
I have written a very simple WCF service that I'm trying to host in SharePoint. I followed Sahil Malik's instructions (http://blah.winsmarts.com/2008-5-SharePoint_as_a_WCF_Host.aspx).
Intro: the service is supposed to return some data from a provided List/Document Library. I've created a custom class to hold the info I need and the service will return a collection of these objects.
First I ran into issues with the binding. I used basicHttpBinding, but that didn't work. This is an intranet site so anonymous access is out of the question. I ended up getting the service up in a browser by using <security mode="TransportCredentialOnly"> <transport clientCredentialType="Ntlm"/> </security>.
I created a simple console application that calls the service and when I run this on the server I get errors:
Could not load file or assembly 'Microsoft.SharePoint.intl, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied
.. but sometimes this error is replaced by an access denied error from the SharePoint API (excerpt: Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)).
The service will be used by an Silverlight application running on the same server as the serivce... but I need to get it to work from my console app first.
Edit: What would be the best would be if I could run the service with no security set, maybe other than my own custom security (a simple username/password passed to the method(s)). Is this possible? If yes, how?
Any ideas?
Thanks!
|
|