2
Answers

Kindly assist to correct below codes

Carlos kambui

Carlos kambui

7y
276
1
i want to group after selecting
For Each row As LabtransType In svcClient.GetLabtrans(MdlConn.checkDB, " ").GroupBy(Function(x) x.result_ref).ToList()
TvWaiter.Nodes(0).Nodes.Add(New TreeNode(row.result_ref))
Next 
 i got this error
Additional information: Unable to cast object of type 'Grouping[System.String,Hospital_dbms.LabtransType]' to type 'Hospital_dbms.LabtransType'.
kindly any one with idea assist please 
Answers (2)
0
B B

B B

NA 5 351 8y

Hi Bikesh Srivastava, I didn't exactly understand what you want to convey. I am doing my service method implementation in base class only.

public class Monitor : IMonitor
{
   public Task AddMonitor(Monitor mo)
   {
   // Implementation goes here 
   }
   public Task RemoveMonitor(Monitor mo)
   {
       // Implementation goes here
   }
}
 

But anyway my code id now working. Once i decorated my IMonitorCallback with (IsOneWay = true)] its started working perfectly.

interface IMonitorCallback
{
   [OperationContract(IsOneWay = true)]
   void OnAdded(Monitor data);
 
   [OperationContract(IsOneWay = true)]
   void OnRemoved(Monitor data);
}
 
0
Bikesh Srivastava

Bikesh Srivastava

NA 19.8k 835k 8y
I think you need to understand of WCF in deep.
because if you are creating interface  and implement then you have to declare all method in base class.
0
Vignesh Mani

Vignesh Mani

NA 13.4k 938.2k 8y
http://stackoverflow.com/questions/22466523/405-method-not-allowed-wcf-web-service-after-second-request