Sreenath G

Sreenath G

  • NA
  • 233
  • 311.7k

Error in WCF Error “ does not implement interface member “ in Silverlight and ASP.Net Application

Mar 16 2011 11:23 PM
 

Hi,

I have the following code written…

In IServiceIncident.cs

 

[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

 

  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

 

 


Answers (2)