Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have the following code written…
In IServiceIncident.cs
C#
[ServiceContract]
    public interface IServiceIncident
    {
        [OperationContract]
        List<clsApplicationsList> mFnGetApplicationsList();
        [OperationContract]
        List<clsProgramList> mFnGetProgramsList();
    }
And have corresponding classes defined correctly as…
  [DataContract]
    public class clsApplicationsList
    {
       public string _AppName = "";
        [DataMember]
        public string Prp_AppName
        {
            get
            {
                return _AppName;
            }
            set
            {
                _AppName = value;
            }
        }

In IServiceIncident.svc.cs
C#
  public class ServiceIncident : IServiceIncident
    {
public List<clsApplicationsList> mFnGetApplicationsList()
        {
            try
            {}
  public List<clsProgramList> mFnGetProgramList()
        {
            }


Here I am getting error in svc.cs file as “Error 1 ...Web.ServiceIncident' does not implement interface member ‘...Web.IServiceIncident.mFnGetProgramsList()' ...Web\ServiceIncident.svc.cs 13 18 ...Web”

Any suggestion why this is happening…

Please guide.
Thanks
Sreenath
Posted
Updated 16-Mar-11 21:11pm
v2

1 solution

Hi..Got solved. It was because of spelling mismatch of mFnGetProgramsList().
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900