Skip to main content

Microsoft Silverlight

Answered Question WCf .svc file not refreshing in Service ReferenceRSS Feed

(0)

CraigMuckleston
CraigMuc...

Member

Member

268 points

131 Posts

WCf .svc file not refreshing in Service Reference

I have an SL3 app with a wcf .svc file. I have many functions in the .svc file and can manipulate my data nicely. I have now added another simple function, rebuilt my web app, but when I either a) update my service reference, or b) try to add another instance of the scf service, I can't see the new function in my app. In fact, When I try to add a new reference to the service, I can't even see the new function in the Operations list of the Add Service Reference window.

 Anyone had such an issue?

ccoombs
ccoombs

Contributor

Contributor

5168 points

758 Posts

Answered Question

Re: WCf .svc file not refreshing in Service Reference

juts covering the basics, but:

make sure you tag it as an OperationContract

make sure you're pointed to the right address.  if you have a set of live webservice and a set running on localhost, you obviously won't have access to the new method unless you either publish your service or you point your service reference to localhost

pongsathon.keng
pongsath...

Member

Member

62 points

11 Posts

Answered Question

Re: WCf .svc file not refreshing in Service Reference

Did you check wsdl by brow your servicesin browser, http://localhost:XXXX/wcf.svc?wsdl. If your method exist in wsdl, the svcutil will generate the proxy for you correctly.

CraigMuckleston
CraigMuc...

Member

Member

268 points

131 Posts

Re: WCf .svc file not refreshing in Service Reference

I have checked the wsdl by browsing to  http://localhost:XXXX/wcf.svc?wsdl. I can see all my other methods except my new one (which is decorated by OperationContract)

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities