Trent Swanson
Material, Formal, Efficient, Final Cause of Software Architecture

The contract name 'CONTRACT' could not be found in the list of contracts implemented by the service 'SERVICE'

August 30, 2007 04:20 by trents

You may recieve this exception when hosting .NET 3.0 WCF services in partial-trust, this will not be the case in .NET 3.5. 

The other day I was working on hosting a WCF web service in SharePoint.  I ran in to an error hosting the service in IIS "The contract name 'CONTRACT' could not be found in the list of contract implemented by the service 'Service'".  The contract is implemented, and and there  are no spaces in the web.config contract name.  It turns out this is the exception you receive when hosting WCF in partial trust.

If you are hosting a .NET 3.0 WCF service in IIS and recieving this error, you may want to ensure you are running in full trust, because WCF does not support partial-trust today, but... it will in .NET 3.5.


Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories: SharePoint | WCF
Actions: E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed

Related posts

Comments

August 9. 2009 22:07

Mirror wills

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on. You have done a marvellous job!

Mirror wills

August 10. 2009 20:19

Cancelled cheque

We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on. You have done a marvellous job!

Cancelled cheque

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

March 9. 2010 14:36