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'¶mnotetext='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
Post a Comment