1
Answer

I have got error I will show You code

Santosh Reddy

Santosh Reddy

7y
238
1
sql code
select * from gridview
insert into gridview values (1,'romesh',9043852844,'dpm','laxminarayena')
insert into gridview values (2,'rr',804593839,'spk','narayena')
insert into gridview values (3,'ggf',773682388,'ich','rom')
insert into gridview values (4,'vvv',8803774443,'kotari','surya')
insert into gridview values (5,'hhh',98480004374,'pbm','llb')
 gridview id Gv

Attachment: Screenshot_(30).zip

Answers (1)
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