c# 4.0 - WCF method's breakpoint not being hit -


i new wcf , building service crud operations. have created new void method takes 2 parameters. have set breakpoint , in debugging mode have pasted url:

http://localhost:55152/wcfdataservice.svc/addnewnote()?paramnotetitle='dfdfdf'&paramnotetext='dfdfdfdf' 

this code:

 [webget]     public void addnewnote(string paramnotetitle, string paramnotetext)     {         //my hardcoded values now...         int parentid = 8879;         int jobid = 1000088150;         int contactid = 309;         guid userid = guid.newguid();         string relatedtype = "advertiser contact";         bool isshared = true;          tblnote n = new tblnote         {           notestitle = paramnotetitle,           notestext = paramnotetext,           parentid = parentid,           contactid = contactid,           jobid = jobid,           userid = userid,           groupid = null,           relatedtype = relatedtype,           isshared = isshared         };         this.currentdatasource.tblnotes.add(n);         this.currentdatasource.savechanges();      } 

i getting 404 error. there problem query string/url?

first of all, check if service running correctly pasting url in browser:

http://localhost:55152/wcfdataservice.svc 

if so, recommend have @ similar question.

hope helps!


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -