0

When performing GetAll_SamplePriscriptionDrug function of the error message

public EpriscriptionSrv()
{
using (var ctx = new EpriscriptionContext())
{
ctx.Configuration.ProxyCreationEnabled = false;
LstSamplePriscriptionDrug = ctx.SamplePriscriptionDrug.ToList();
}           
}

public static List<SamplePriscriptionDrug> LstSamplePriscriptionDrug = new List<SamplePriscriptionDrug>();


[OperationContract]
public List<SamplePriscriptionDrug> GetAll_SamplePriscriptionDrug()
{
    return LstSamplePriscriptionDrug;
}

enter image description here

  • Probably an issue related to your connectivity with the service. Check the endpoint binding for your service as well. See that the ports match and connections are allowed. – Dhrumil May 11 '15 at 05:41
  • Did you try accessing service in browser. – Rahul Nikate May 11 '15 at 05:42
  • FYI it's spelled 'prescription', not 'priscription'. That's the sort of thing that does my head in. – DeanOC May 11 '15 at 05:50

0 Answers0