Hi,
I have an IServiceFacade interface decorated with a [ServiceContract] and [OperationContract] attributes. When I perform Update Service Reference via VS2005 from the solution explorer, it works fine. Now I want to add [FaultContract] attributes to all of the methods in the IServiceFacade interface. When I add the attributes to a couple of methods, Update Service Reference still works. If however the number of decorated methods reach a certain number, the update of the service reference fails. It doesn't seem to have anything to do with the methods that are decorated with fault contracts.
Here is the service contract:
[ServiceContract]
public interface IServicesFacade
{
[OperationContract]
[FaultContract(typeof(SecurityFault))]
bool UserHasWriteRights();
...
}
Here is the fault implementation:
[DataContract]
public class SecurityFault
{
private string _message;
public SecurityFault (string message)
{
_message = message;
}
[DataMember]
public string Message
{
get { return _message; }
private set { _message = value;}
}
}